Created
December 15, 2017 19:28
-
-
Save gustavopaes/a79840c1db9ac292d674b5dcef65a08b to your computer and use it in GitHub Desktop.
Atom update to specific version
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 | |
atom -v | |
echo "---------" | |
curl -q -s https://api.github.com/repos/atom/atom/tags | grep "name" | awk -F "\"" '{ print $4 }' | head -n 10 | |
echo | |
echo -n "Update to (ctrl+c to cancel): " | |
read release | |
wget -O "/tmp/atom-amd64.deb" "https://github.com/atom/atom/releases/download/$release/atom-amd64.deb" | |
sudo dpkg -i /tmp/atom-amd64.deb | |
rm /tmp/atom-amd64.deb | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment