mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 11:53:51 +00:00
Merge pull request #160173 from SuperSandro2000/vscode-extensions
This commit is contained in:
commit
a87b854c10
@ -40,7 +40,7 @@ function get_vsixpkg() {
|
|||||||
URL="https://$1.gallery.vsassets.io/_apis/public/gallery/publisher/$1/extension/$2/latest/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage"
|
URL="https://$1.gallery.vsassets.io/_apis/public/gallery/publisher/$1/extension/$2/latest/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage"
|
||||||
|
|
||||||
# Quietly but delicately curl down the file, blowing up at the first sign of trouble.
|
# Quietly but delicately curl down the file, blowing up at the first sign of trouble.
|
||||||
curl --silent --show-error --fail -X GET -o "$EXTTMP/$N.zip" "$URL"
|
curl --silent --show-error --retry 3 --fail -X GET -o "$EXTTMP/$N.zip" "$URL"
|
||||||
# Unpack the file we need to stdout then pull out the version
|
# Unpack the file we need to stdout then pull out the version
|
||||||
VER=$(jq -r '.version' <(unzip -qc "$EXTTMP/$N.zip" "extension/package.json"))
|
VER=$(jq -r '.version' <(unzip -qc "$EXTTMP/$N.zip" "extension/package.json"))
|
||||||
# Calculate the SHA
|
# Calculate the SHA
|
||||||
|
Loading…
Reference in New Issue
Block a user