changed hamlib version checking

This commit is contained in:
tb14
2022-10-12 19:31:55 -05:00
parent 7e39441baa
commit beb1e49dd6
+1 -1
View File
@@ -107,7 +107,7 @@ function check_installed_programs() {
echo "Please wait while I determine what programs and versions are already present...." echo "Please wait while I determine what programs and versions are already present...."
if hash rigctl 2>/dev/null; then 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 else
HAMLIB="NOT INSTALLED" HAMLIB="NOT INSTALLED"
fi fi