Update download.sh
All checks were successful
Scrape / scrape (push) Successful in 29s

This commit is contained in:
Henrik Lindhe 2026-05-31 12:20:54 +02:00
parent 7002bc714e
commit dcf8f6c649

View file

@ -64,7 +64,7 @@ EXTENSION=.json
FILENAME=$(echo "$URL" | sed -E 's|^https?://||' | sed -E 's|^www\.||' | sed 's|/$||' | sed 's|/|-|g') FILENAME=$(echo "$URL" | sed -E 's|^https?://||' | sed -E 's|^www\.||' | sed 's|/$||' | sed 's|/|-|g')
# Add extension to the filename # Add extension to the filename
FILENAME="${FILENAME}${EXTENSION}" FILENAME="${FILENAME}"
# Make sure we don't end up with just an extension # Make sure we don't end up with just an extension
if [ "$FILENAME" = "${EXTENSION}" ]; then if [ "$FILENAME" = "${EXTENSION}" ]; then