fix(shellcheck): quote to prevent word splitting

https://www.shellcheck.net/wiki/SC2046
This commit is contained in:
Martin Wimpress 2024-05-06 22:35:07 +01:00 committed by Martin Wimpress
parent 9b72928e36
commit f95e0e14cc
1 changed files with 2 additions and 2 deletions

View File

@ -1291,7 +1291,7 @@ function web_get() {
fi
if [[ ${OS} != windows && ${OS} != macos && ${OS} != windows-server ]]; then
echo Downloading $(pretty_name "${OS}") ${RELEASE} ${EDITION:+ $EDITION}
echo "Downloading $(pretty_name "${OS}") ${RELEASE} ${EDITION}"
echo "- URL: ${URL}"
fi
@ -1356,7 +1356,7 @@ function zsync_get() {
echo "ERROR! Unable to create directory ${DIR}"
exit 1
fi
echo -e Downloading $(pretty_name "${OS}") ${RELEASE} ${EDITION+ ${EDITION}} from ${URL}'\n'
echo "Downloading $(pretty_name "${OS}") ${RELEASE} ${EDITION} from ${URL}"
# Only force http for zsync - not earlier because we might fall through here
if ! zsync "${URL/https/http}.zsync" -i "${DIR}/${OUT}" -o "${DIR}/${OUT}" 2>/dev/null; then
echo "ERROR! Failed to download ${URL/https/http}.zsync"