Skip to content

Instantly share code, notes, and snippets.

@reecer
Created February 5, 2017 21:00
Show Gist options
  • Save reecer/3fd8617e695beea9ee6e5c99dd47d6aa to your computer and use it in GitHub Desktop.
Save reecer/3fd8617e695beea9ee6e5c99dd47d6aa to your computer and use it in GitHub Desktop.
Update vs-code via latest 64-bit tar.gz
#!/usr/bin/env bash
OUT_DIR=/opt/
URL='https://vscode-update.azurewebsites.net/latest/linux-x64/stable'
DIR="$(dirname "$(readlink -f "$0")")"
TAR_FILE=$DIR/latest.tar.gz
curl -z $TAR_FILE -o $TAR_FILE -L $URL
tar xzf $TAR_FILE -C $OUT_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment