Skip to content

Instantly share code, notes, and snippets.

@mcdruid
Created April 25, 2017 14:01
Show Gist options
  • Save mcdruid/6085ed6b51bbb6113d40829e6bfbcfd3 to your computer and use it in GitHub Desktop.
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.
#!/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