Last active
November 9, 2020 10:46
-
-
Save CSUwangj/f18ac9b06ac76effa3dca76876e21ac6 to your computer and use it in GitHub Desktop.
get vscode server
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
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Download url is: https://update.code.visualstudio.com/commit:${commit_id}/server-linux-x64/stable | |
curl -sSL "https://update.code.visualstudio.com/latest/server-linux-x64/stable" -o vscode-server-linux-x64.tar.gz | |
mkdir -p ~/.vscode-server/bin/${commit_id} | |
# assume that you upload vscode-server-linux-x64.tar.gz to /tmp dir | |
tar zxvf vscode-server-linux-x64.tar.gz -C ~/.vscode-server/bin/${commit_id} --strip 1 | |
touch ~/.vscode-server/bin/${commit_id}/0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment