vscode 316 B

12345678910111213
  1. #!/bin/bash
  2. set -o errexit -o pipefail
  3. if [[ "$OS" = "Darwin" ]]; then
  4. gimme_pkg visual-studio-code
  5. else
  6. if ! has code; then
  7. URL="https://go.microsoft.com/fwlink/?LinkID=760868"
  8. TMP_FILE="/tmp/gimme.vscode-amd64.1.0.0.deb"
  9. curl -fSLC- "$URL" -o "$TMP_FILE"
  10. sudo dpkg -i "$TMP_FILE"
  11. rm "$TMP_FILE"
  12. fi
  13. fi