Created
February 5, 2017 21:00
-
-
Save reecer/3fd8617e695beea9ee6e5c99dd47d6aa to your computer and use it in GitHub Desktop.
Update vs-code via latest 64-bit tar.gz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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