Browse Source

vscode: add initial gimme for vscode (aka code)

Kyle P Davis 9 years ago
parent
commit
df813f7e78
2 changed files with 14 additions and 0 deletions
  1. 1 0
      gimmes/code
  2. 13 0
      gimmes/vscode

+ 1 - 0
gimmes/code

@@ -0,0 +1 @@
+vscode

+ 13 - 0
gimmes/vscode

@@ -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