Skip to content

Commit

Permalink
Use index.html if there's no filename in the URL
Browse files Browse the repository at this point in the history
Fixes #4
  • Loading branch information
ryandesign authored and samueloph committed Dec 6, 2024
1 parent 486a1dd commit a57581b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wcurl
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ exec_curl()
NEXT_PARAMETER=""
for url in ${URLS}; do
filename="$(get_url_filename "${url}")"
[ -z "${filename}" ] && filename=index.html
# shellcheck disable=SC2086
set -- "$@" ${NEXT_PARAMETER} ${PER_URL_PARAMETERS} ${CURL_HAS_NO_CLOBBER} ${CURL_OPTIONS} --output "${filename}" "${url}"
NEXT_PARAMETER="--next"
Expand Down

0 comments on commit a57581b

Please sign in to comment.