positron-bin: fix update script

This commit is contained in:
Bruno Rodrigues
2026-02-24 10:21:38 +01:00
parent ea7f1f0681
commit 18f1bc5ce0
+2 -2
View File
@@ -18,11 +18,11 @@ fi
# Update Darwin hash.
current_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://cdn.posit.co/positron/releases/mac/universal/Positron-${current_version}-universal.dmg" \
"https://cdn.posit.co/positron/releases/mac/arm64/Positron-${current_version}-arm64.dmg" \
| jq -r .hash)
new_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://cdn.posit.co/positron/releases/mac/universal/Positron-${new_version}-universal.dmg" \
"https://cdn.posit.co/positron/releases/mac/arm64/Positron-${new_version}-arm64.dmg" \
| jq -r .hash)
sed -i "s|$current_hash|$new_hash|g" $positron_nix