]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
small refactor of bash code
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 9 Nov 2018 19:26:45 +0000 (11:26 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 19 Nov 2018 18:18:10 +0000 (10:18 -0800)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
docs/_static/worker_start.sh

index 500f2cbab9a1321ba5804d9a68103d722688ac26..c8f0d4636c628e4d760361565990d1b0204d7b0e 100644 (file)
@@ -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 "$@"