Last active
March 28, 2016 01:58
-
-
Save petebachant/ef536241fb03085d6a0a to your computer and use it in GitHub Desktop.
A script to automatically install the latest Atom editor on Linux via deb package.
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
| #!/usr/bin/env bash | |
| # From http://askubuntu.com/questions/589469/how-to-automatically-update-atom-editor | |
| wget https://github.com/atom/atom/releases/latest -O ~/Downloads/latest | |
| wget $(awk -F '[<>]' '/href=".*atom-amd64.deb/ {match($0,"href=\"(.*.deb)\"",a); print "https://github.com/" a[1]} ' ~/Downloads/latest) -O ~/Downloads/atom-amd64.deb | |
| sudo dpkg -i ~/Downloads/atom-amd64.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment