From: Ian Campbell Date: Tue, 6 Oct 2015 15:36:01 +0000 (+0100) Subject: standalone: Correctly quote $@ where it is used. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=db48cfe1f5e18a917cc552aa60e37efb33146237;p=people%2Fliuw%2Fosstest.git standalone: Correctly quote $@ where it is used. Else arguments with spaces become multiple arguments. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- diff --git a/standalone b/standalone index 7c7fde9..25e23ca 100755 --- a/standalone +++ b/standalone @@ -197,7 +197,7 @@ with_logging() { local log=$1; shift ensure_logs savelog -c 300 "$log" >/dev/null - $@ 2>&1 | tee "$log" + "$@" 2>&1 | tee "$log" rc=${PIPESTATUS[0]} if [ $rc -ne 0 ] ; then echo "FAILED rc=${rc}" >&2 @@ -240,7 +240,7 @@ case $op in OSSTEST_FLIGHT=$flight \ OSSTEST_CONFIG=$config \ OSSTEST_NO_BASELINE=$nobaseline \ - with_logging logs/$flight/make-flight.log ./cr-daily-branch $@ $branch + with_logging logs/$flight/make-flight.log ./cr-daily-branch "$@" $branch ;; set-paths) @@ -321,7 +321,7 @@ case $op in OSSTEST_FLIGHT=$flight \ OSSTEST_HOST_REUSE=$reuse \ OSSTEST_JOB=$job \ - with_logging logs/$flight/$job.$ts.log ./$ts $hosts $@ + with_logging logs/$flight/$job.$ts.log ./$ts $hosts "$@" ;; get-job-status)