Last active
December 20, 2019 01:34
-
-
Save js2854/a17e4c37aac1a9688dcfe2394dfb84ce to your computer and use it in GitHub Desktop.
Manually download updates to resolve stuck problem on the step of downloading vscode-server-linux-x64.tar.gz with wget
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 | |
# Reference https://github.com/microsoft/vscode-remote-release/issues/680 | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 sha" | |
echo "Demo: $0 26076a4de974ead31f97692a0d32f90d735645c0" | |
exit 0 | |
fi | |
sha=$1 | |
target_dir=`realpath ~/.vscode-server/bin/${sha}` | |
wget -nv -O ${target_dir}/vscode-server-linux-x64.tar.gz https://update.code.visualstudio.com/commit:${sha}/server-linux-x64/stable | |
touch ${target_dir}/vscode-scp-done.flag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment