mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-12-17 16:31:47 +03:00
fix shellcheck
This commit is contained in:
parent
352b432d81
commit
3906f3c747
@ -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