Skip to content

Instantly share code, notes, and snippets.

@aspirantzhang
Created September 15, 2023 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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

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

@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