Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.check patch #465

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from
Prev Previous commit
Next Next commit
fix app check tqsl
  • Loading branch information
SpudGunMan committed Oct 19, 2022
commit ef927db6b21bf658337509a77aaf92252740a0fa
8 changes: 7 additions & 1 deletion app-check
Original file line number Diff line number Diff line change
@@ -518,9 +518,15 @@ CHECK() {
else
echo "TQSL=Installed" >> $UPDATEFILE

TQSLCUR =$(tqsl -v | sed 's/.*Version //')
TQSLCUR =$(tqsl -v 2>&1 | sed 's/TQSL Version //' | cut -c1-6)
TQSLLATEST=$(curl -s http://www.arrl.org/tqsl-download | grep "for Linux" | sed 's/.*TQSL //' | awk '{print $1}')

if (($(echo "${TQSLLATEST} ${TQSLCUR}" | awk '{print ($1 > $2)}'))); then
echo "TQSL=NEEDS-UPDATE" >> $UPDATEFILE
else
echo "TQSL=is_latest_version" >> $UPDATEFILE
fi

fi

#----------------------------------------------------#