fix shellcheck

This commit is contained in:
Ryan Mulligan 2018-03-29 18:50:04 -07:00
parent d2278ce3b5
commit e364f8e21b

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