Last active
February 18, 2021 17:48
-
-
Save AdaRoseCannon/fff11b56a36a11237eaf412d74286323 to your computer and use it in GitHub Desktop.
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 | |
DIR="$HOME/bin" | |
cd /tmp | |
curl -s https://api.github.com/repos/cdr/code-server/releases/latest \ | |
| grep "browser_download_url.\+linux-x86_64.tar.gz" \ | |
| cut -d : -f 2,3 \ | |
| tr -d \" \ | |
| wget --output-document=code-server.tar.gz -qi - | |
tar xvzf /tmp/code-server.tar.gz --strip=1 --overwrite --wildcards --no-anchored -C "$DIR" 'code-server' | |
chmod +x "$DIR/code-server" |
Hey, I've used this great script and want to thank you for it. I'm not sure but it looks like the name has changed again to "code-server-3.3.0-linux-amd64" for the tarball, from what I can tell.
They also recently switched to distributing .debs instead which maybe a neater solution.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That seems odd, code-server has changed a lot since I wrote this gist perhaps it's best to try to follow the instructions at https://github.com/cdr/code-server