Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

cd ~

curl -L 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



Come on... people here should be able to handle a zip file...


also, "rm -rf Atom.zip" - WTF? Why not throw a "sudo" in there for good measure...


also, why 'open'? It's asynchronous with the bash session, so the mv will fail.


Yeah, "cd ~" is quite funny, too, but maybe we should leave this guy alone now :-)


Please forgive me, oh great overlords of HN, for copying and pasting the contents of the original gist without bothering to edit it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: