Skip to content

Instantly share code, notes, and snippets.

@aspirantzhang
Created September 15, 2023 01:25
Show Gist options
  • Save aspirantzhang/fb096e58f9386fdb886c0539f831c581 to your computer and use it in GitHub Desktop.
Save aspirantzhang/fb096e58f9386fdb886c0539f831c581 to your computer and use it in GitHub Desktop.
VSCode Server Manual Update Script (WSL)
#!/bin/bash
echo "Enter commit hash:"
read hash
mkdir -p /root/temp
cd /root/temp
wget https://update.code.visualstudio.com/commit:$hash/server-linux-x64/stable -O vscode-server-linux-x64.tar.gz
tar zxvf vscode-server-linux-x64.tar.gz
rm -rf ~/.vscode-server/bin/*
mv vscode-server-linux-x64 ~/.vscode-server/bin/
mv ~/.vscode-server/bin/vscode-server-linux-x64 ~/.vscode-server/bin/$hash
rm -rf /root/temp
echo -e "\033[32mVSCode Server Update Processing Complete.\033[0m"
@viktorashi
Copy link

fkin stack overflow reputationn can't even give you some propss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment