mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 14:17:13 +02:00
Quoting arguments.
This commit is contained in:
@@ -111,7 +111,18 @@ done
|
|||||||
set -- "${args[@]}"
|
set -- "${args[@]}"
|
||||||
|
|
||||||
execRunner () {
|
execRunner () {
|
||||||
(( debug )) && echo "[command line] $@"
|
# print the arguments one to a line, quoting any containing spaces
|
||||||
|
(( debug )) && echo "# Executing command line:" && {
|
||||||
|
for arg; do
|
||||||
|
if echo "$arg" | grep -q ' '; then
|
||||||
|
printf "\"%s\"\n" "$arg"
|
||||||
|
else
|
||||||
|
printf "%s\n" "$arg"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo ""
|
||||||
|
}
|
||||||
|
|
||||||
"$@"
|
"$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user