gradlew (spring-boot-2.7.3) | : | gradlew (spring-boot-2.7.4) | ||
---|---|---|---|---|
skipping to change at line 207 | skipping to change at line 207 | |||
# shell script including quotes and variable substitutions, so put them in | # shell script including quotes and variable substitutions, so put them in | |||
# double quotes to make sure that they get re-expanded; and | # double quotes to make sure that they get re-expanded; and | |||
# * put everything else in single quotes, so that it's not re-expanded. | # * put everything else in single quotes, so that it's not re-expanded. | |||
set -- \ | set -- \ | |||
"-Dorg.gradle.appname=$APP_BASE_NAME" \ | "-Dorg.gradle.appname=$APP_BASE_NAME" \ | |||
-classpath "$CLASSPATH" \ | -classpath "$CLASSPATH" \ | |||
org.gradle.wrapper.GradleWrapperMain \ | org.gradle.wrapper.GradleWrapperMain \ | |||
"$@" | "$@" | |||
# Stop when "xargs" is not available. | ||||
if ! command -v xargs >/dev/null 2>&1 | ||||
then | ||||
die "xargs is not available" | ||||
fi | ||||
# Use "xargs" to parse quoted args. | # Use "xargs" to parse quoted args. | |||
# | # | |||
# With -n1 it outputs one arg per line, with the quotes and backslashes removed. | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. | |||
# | # | |||
# In Bash we could simply go: | # In Bash we could simply go: | |||
# | # | |||
# readarray ARGS < <( xargs -n1 <<<"$var" ) && | # readarray ARGS < <( xargs -n1 <<<"$var" ) && | |||
# set -- "${ARGS[@]}" "$@" | # set -- "${ARGS[@]}" "$@" | |||
# | # | |||
# but POSIX shell has neither arrays nor command substitution, so instead we | # but POSIX shell has neither arrays nor command substitution, so instead we | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 6 lines changed or added |