mirror of
https://github.com/nix-community/nixpkgs-update.git
synced 2024-12-01 22:46:10 +03:00
fix shellcheck
This commit is contained in:
parent
d2278ce3b5
commit
e364f8e21b
@ -32,7 +32,7 @@ fi
|
||||
|
||||
ESCAPED_NEW_VERSION="${NEW_VERSION//\./\\.}"
|
||||
DOWNLOADS=$(curl "https://repology.org/api/v1/metapackage/$PACKAGE_NAME" | jq '.[].downloads | select(values) | .[] ')
|
||||
FILTERED_DOWNLOADS=$(echo "$DOWNLOADS" | grep "$ESCAPED_NEW_VERSION" | grep -vE "$ESCAPED_NEW_VERSION[^/]+\\.tar" | grep -vE "$ESCAPED_NEW_VERSION[^/]+\\.zip" | sed 's|"||g')
|
||||
FILTERED_DOWNLOADS=$(echo "$DOWNLOADS" | grep "$ESCAPED_NEW_VERSION" | grep -vE "${ESCAPED_NEW_VERSION}[^/]+\\.tar" | grep -vE "${ESCAPED_NEW_VERSION}[^/]+\\.zip" | sed 's|"||g')
|
||||
|
||||
for d in $FILTERED_DOWNLOADS
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user