|
@@ -0,0 +1,13 @@
|
|
|
+#!/bin/bash
|
|
|
+set -o errexit -o pipefail
|
|
|
+if ! has code; then
|
|
|
+ if [[ "$OS" = "Darwin" ]]; then
|
|
|
+ gimme_pkg visual-studio-code
|
|
|
+ else
|
|
|
+ URL="https://go.microsoft.com/fwlink/?LinkID=760868"
|
|
|
+ TMP_FILE="/tmp/vscode-amd64.1.0.0.deb"
|
|
|
+ curl -fsSLC- "$URL" -o "$TMP_FILE"
|
|
|
+ sudo dpkg -i "$TMP_FILE"
|
|
|
+ rm "$TMP_FILE"
|
|
|
+ fi
|
|
|
+fi
|