Created
April 26, 2022 14:58
-
-
Save petitJAM/76fb18c479e86a376a1bb3b23c9a3ea2 to your computer and use it in GitHub Desktop.
Automatically install Zoom on Ubuntu/Debian
This file contains 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 | |
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