From f95e0e14cc07dcc97af7d8751d2c45a8632277d2 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 6 May 2024 22:35:07 +0100 Subject: [PATCH] fix(shellcheck): quote to prevent word splitting https://www.shellcheck.net/wiki/SC2046 --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index e3e1bb1..3729fd6 100755 --- a/quickget +++ b/quickget @@ -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"