From: Patrick Donnelly Date: Fri, 9 Nov 2018 19:26:45 +0000 (-0800) Subject: small refactor of bash code X-Git-Tag: 1.1.0~287^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6bf28a729149250d8ee8f314ea126a10c526d80c;p=teuthology.git small refactor of bash code Signed-off-by: Patrick Donnelly --- diff --git a/docs/_static/worker_start.sh b/docs/_static/worker_start.sh index 500f2cbab9..c8f0d4636c 100644 --- a/docs/_static/worker_start.sh +++ b/docs/_static/worker_start.sh @@ -24,8 +24,8 @@ function start_all { } function main { - echo "$@" - if [[ -z "$@" ]] + printf '%s\n' "$*" + if [[ -z "$*" ]] then start_all elif [ ! -z "$2" ] && [ "$2" -gt "0" ] @@ -37,4 +37,4 @@ function main { fi } -main $@ +main "$@"