Fix regression due to f80e6a37a9d748f43047141b18986f6386444bc9.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Thu, 17 Jan 2019 09:47:46 +0000 (17:47 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Thu, 17 Jan 2019 09:47:46 +0000 (17:47 +0800)
launcher

index dad89fc2674cad3822c4e4b29e69f48377352820..30245c8e716b2f811586bffcb43c1448f5cbce1d 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -55,7 +55,7 @@ while [ ${#} -gt 0 ]; do
   shift 1
 done
 
-if [[ -z $config ]]; then
+if [ -z "$command" -o -z "$config" -a "$command" != "cleanup" ]; then
   usage
   exit 1
 fi
@@ -451,10 +451,6 @@ fi
   exit 0
 }
 
-if [ -z "$command" -a -z "$config" ]; then
-  usage
-fi
-
 if [ ! "$command" == "setup" ]; then
   if [[ ! -e $config_file ]]; then
     echo "Config file was not found, ensure $config_file exists"
@@ -674,8 +670,6 @@ run_bootstrap() {
   $docker_path rm `cat $cidbootstrap` && rm $cidbootstrap
 }
 
-
-
 case "$command" in
   bootstrap)
       run_bootstrap