mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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:
parent
831105a4b6
commit
5b307cfcf2
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue