vscodium: quote curl command to isolate version string

Co-authored-by: Anders Kaseorg <andersk@mit.edu>
(cherry picked from commit f0219ddf6b)
This commit is contained in:
Cavebat Software 2026-04-16 17:30:33 -04:00 committed by github-actions[bot]
commit 5b307cfcf2

View file

@ -5,7 +5,7 @@ set -eou pipefail
latestVersion=$(curl ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} -sL https://api.github.com/repos/VSCodium/vscodium/releases/latest | jq -r ".tag_name")
currentVersion=$(nix-instantiate --eval -E "with import ./. {}; vscodium.version or (lib.getVersion vscodium)" | tr -d '"')
latestUpstream=$(curl -sL https://raw.githubusercontent.com/VSCodium/vscodium/refs/tags/$latestVersion/upstream/stable.json | jq -r ".tag")
latestUpstream=$(curl -sL "https://raw.githubusercontent.com/VSCodium/vscodium/refs/tags/$latestVersion/upstream/stable.json" | jq -r ".tag")
echo "latest version: $latestVersion"
echo "current version: $currentVersion"