Skip to content

Instantly share code, notes, and snippets.

View vanwhebin's full-sized avatar
🎯
Focusing

vanwhebin vanwhebin

🎯
Focusing
View GitHub Profile
@vanwhebin
vanwhebin / download-vs-code-server.sh
Created November 7, 2022 02:34 — forked from b01/download-vs-code-server.sh
Linux script to download latest VS Code Server, good for Docker (tested in Alpine).
#!/bin/sh
set -e
# Auto-Get the latest commit sha via command line.
get_latest_release() {
tag=$(curl --silent "https://api.github.com/repos/${1}/releases/latest" | # Get latest release from GitHub API
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' ) # Pluck JSON value