Skip to content

Instantly share code, notes, and snippets.

@petebachant
Last active March 28, 2016 01:58
Show Gist options
  • Select an option

  • Save petebachant/ef536241fb03085d6a0a to your computer and use it in GitHub Desktop.

Select an option

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.
#!/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