Created
September 15, 2023 01:25
-
-
Save aspirantzhang/fb096e58f9386fdb886c0539f831c581 to your computer and use it in GitHub Desktop.
VSCode Server Manual Update Script (WSL)
This file contains hidden or 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 | |
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" |
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
damn man, just used it you're a goddamn lifesaver, got it from here it should be set as the solution, even though it could've been done manually andi know people are kinda wondering before just running a script but just gotta read it, keep it up brouvs