diff --git a/quickget b/quickget index 769a84c649..c40b8dbc96 100755 --- a/quickget +++ b/quickget @@ -1307,7 +1307,7 @@ function web_redirect() { local URL="${1}" # Check for URL redirections # Output to nonexistent directory so the download fails fast - REDIRECT_URL=$(curl --silent --location --fail --write-out %{url_effective} --output /var/cache/${RANDOM}/${RANDOM} "${URL}") + REDIRECT_URL=$(curl --silent --location --fail --write-out '%{url_effective}' --output /var/cache/${RANDOM}/${RANDOM} "${URL}") if [ "${REDIRECT_URL}" != "${URL}" ]; then echo "${REDIRECT_URL}" else