Skip to content

Instantly share code, notes, and snippets.

@petitJAM
Created April 26, 2022 14:58
Show Gist options
  • Save petitJAM/76fb18c479e86a376a1bb3b23c9a3ea2 to your computer and use it in GitHub Desktop.
Save petitJAM/76fb18c479e86a376a1bb3b23c9a3ea2 to your computer and use it in GitHub Desktop.
Automatically install Zoom on Ubuntu/Debian
#!/bin/bash
if [ "$EUID" -ne 0 ]
then
echo "Root required to install"
exit
fi
file=/tmp/zoom_amd64.deb
wget --output-document $file "https://zoom.us/client/latest/zoom_amd64.deb"
new_version=$(dpkg --info $file | grep Version | awk '{print $2}')
current_version=$(dpkg -s zoom | grep Version | awk '{print $2}')
if [[ "$new_version" == "$current_version" ]]
then
echo "Already up-to-date: Version $current_version"
exit
fi
dpkg -i $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment