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.