atom 274 B

1234567891011
  1. #!/bin/bash
  2. if [[ "$OS" = "Darwin" ]]; then
  3. [[ -d "$HOME/Applications/Atom.app" ]] || brew cask install atom
  4. else
  5. if ! has atom; then
  6. TMP_FILE="/tmp/atom$$.deb"
  7. curl -fSL https://atom.io/download/deb -o "$TMP_FILE"
  8. sudo dpkg -i "$TMP_FILE"
  9. rm "$TMP_FILE"
  10. fi
  11. fi