Skip to content

Instantly share code, notes, and snippets.

@CSUwangj
Last active November 9, 2020 10:46
Show Gist options
  • Save CSUwangj/f18ac9b06ac76effa3dca76876e21ac6 to your computer and use it in GitHub Desktop.
Save CSUwangj/f18ac9b06ac76effa3dca76876e21ac6 to your computer and use it in GitHub Desktop.
get vscode server
#!/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