fix(shellcheck): quote literal { }
https://www.shellcheck.net/wiki/SC1083
This commit is contained in:
parent
c452b138d5
commit
b8c3f64c1c
2
quickget
2
quickget
|
@ -1307,7 +1307,7 @@ function web_redirect() {
|
||||||
local URL="${1}"
|
local URL="${1}"
|
||||||
# Check for URL redirections
|
# Check for URL redirections
|
||||||
# Output to nonexistent directory so the download fails fast
|
# 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
|
if [ "${REDIRECT_URL}" != "${URL}" ]; then
|
||||||
echo "${REDIRECT_URL}"
|
echo "${REDIRECT_URL}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue