fix shellcheck

This commit is contained in:
Ryan Mulligan 2018-03-29 18:46:17 -07:00
parent 352b432d81
commit 3906f3c747

View File

@ -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