Created
April 25, 2017 14:01
-
-
Save mcdruid/6085ed6b51bbb6113d40829e6bfbcfd3 to your computer and use it in GitHub Desktop.
Shell script to check if there's an update available for the linux zoom client.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
version_available=$(curl -s -A 'linux' https://zoom.us/download | grep 'linux-ver-text.*Version [0-9.]*' | grep -o '[0-9.]*') | |
version_installed=$(cat /opt/zoom/version.txt) | |
# example version number | |
#version_available='2.0.89826.1000' | |
echo "version_available: ${version_available}" | |
echo "version_installed: ${version_installed}" | |
if [[ "${version_available}" > "${version_installed}" ]] | |
then | |
echo "Update available! ( https://zoom.us/download )" | |
else | |
echo "Latest version installed." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment