Hello! Thanks for great scripts!
I want to share two mini code optimizations:
- Check latest version from official site (for example with using curl)
GUACVERSION=$(curl --silent https://guacamole.apache.org/ | grep 'Latest release' | awk '{print $4}' | cut -d "/" -f 3)
- Current version and new version comparison after the SERVER (# Set SERVER to be the preferred download server from the Apache CDN) variable, :
if [ $OLDVERSION = $GUACVERSION ]; then exit 0; fi
What do you think? Offer at your discretion :)