4 ms·
cd ~ curl -L https://www.atom.io/api/updates/download https://www.atom.io/api/updates/download -A "Atom/0.1 CFNetwork/1.5" > Atom.zip open Atom.zip mv Atom.a
by gyardley 13y ago
cd ~
curl -L https://www.atom.io/api/updates/download https://www.atom.io/api/updates/download -A "Atom/0.1 CFNetwork/1.5" > Atom.zip
open Atom.zip
mv Atom.app /Applications/
rm -rf Atom.zip
- kayoone 13y agoCome on... people here should be able to handle a zip file...
- oneeyedpigeon 13y agoalso, "rm -rf Atom.zip" - WTF? Why not throw a "sudo" in there for good measure...
- Blahah 13y agoalso, why 'open'? It's asynchronous with the bash session, so the mv will fail.
- oneeyedpigeon 13y agoYeah, "cd ~" is quite funny, too, but maybe we should leave this guy alone now :-)
- gyardley 13y agoPlease forgive me, oh great overlords of HN, for copying and pasting the contents of the original gist without bothering to edit it.