From beb1e49dd636a202d18588d3a9664a7f71d34b3c Mon Sep 17 00:00:00 2001 From: tb14 Date: Wed, 12 Oct 2022 19:31:55 -0500 Subject: [PATCH] changed hamlib version checking --- AmRRON-Setup-Script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AmRRON-Setup-Script.sh b/AmRRON-Setup-Script.sh index 7cba31e..e76cd52 100755 --- a/AmRRON-Setup-Script.sh +++ b/AmRRON-Setup-Script.sh @@ -107,7 +107,7 @@ function check_installed_programs() { echo "Please wait while I determine what programs and versions are already present...." if hash rigctl 2>/dev/null; then - HAMLIB=$(rigctl --version | grep Hamlib | sed s/"rigctl(d),\ Hamlib\ "//) + HAMLIB=$(rigctl --version | awk 'FNR ==1 {print $3}') else HAMLIB="NOT INSTALLED" fi