Skip to content

Instantly share code, notes, and snippets.

View vanwhebin's full-sized avatar

vanwhebin vanwhebin

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