Skip to content

Instantly share code, notes, and snippets.

@js2854
Last active December 20, 2019 01:34
Show Gist options
  • Save js2854/a17e4c37aac1a9688dcfe2394dfb84ce to your computer and use it in GitHub Desktop.
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
#!/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