From ec85c5ff3d15e952b352cf6262e7ad7e1a72a9db Mon Sep 17 00:00:00 2001 From: ktanable1 <76859143+ktanable1@users.noreply.github.com> Date: Tue, 23 Mar 2021 23:44:21 -0700 Subject: [PATCH] Update detect-sh.sh Quote bash args. --- src/main/resources/detect-sh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/detect-sh.sh b/src/main/resources/detect-sh.sh index 669005f..c4315b8 100644 --- a/src/main/resources/detect-sh.sh +++ b/src/main/resources/detect-sh.sh @@ -73,7 +73,7 @@ DETECT_CURL_OPTS=${DETECT_CURL_OPTS:-} # get and update the jar file when a new version releases. DETECT_DOWNLOAD_ONLY=${DETECT_DOWNLOAD_ONLY:-0} -SCRIPT_ARGS="$@" +SCRIPT_ARGS="$(printf " %q" "${@}")" LOGGABLE_SCRIPT_ARGS="" # This provides a way to get the script version (via, say, grep/sed). Do not change.