diff --git a/AmRRON-Setup-Script.sh b/AmRRON-Setup-Script.sh index 83e4938..0d5e585 100755 --- a/AmRRON-Setup-Script.sh +++ b/AmRRON-Setup-Script.sh @@ -144,7 +144,7 @@ if hash flwrap 2>/dev/null; then fi if hash pat 2>/dev/null; then - PAT=$(pat version | awk -F 'v' '{print $2}' | head -c 5) + PAT=$(pat version | awk -F 'v' '{print $2}' | awk -F ' ' '{print $1}') else PAT="NOT INSTALLED" fi @@ -461,14 +461,6 @@ echo "100% Complete" -## Piping the previous function, with echo numbers, instead of percent complete, through this gets a progress bar but I lose my variables to the subshell. Figure out alternative... -#yad --center --progress --percentage=100 --pulsate --auto-close --auto-kill --button gtk-cancel:1 \ -#--title "Getting Version Information" \ -#--text "Please wait while I check on your installed versions and the newest versions available." ${r} ${c} <<< - - - - #Deterimine computer type. function noOS_Support() { yad --image=$DIR/images/corps-icon.png --center --no-buttons \ diff --git a/changelogs/CHANGELOG-Setup-Script.md b/changelogs/CHANGELOG-Setup-Script.md index 5ab262c..2e3e693 100644 --- a/changelogs/CHANGELOG-Setup-Script.md +++ b/changelogs/CHANGELOG-Setup-Script.md @@ -4,6 +4,7 @@ - Bitmessage info - Fixed Hamlib from reinstalling if already up to date. - Fixed JS8Call from reinstalling if already up to date. +- Fixed PAT version check # Version 0.7.2 - FLDIGI raspbian 64bit check