From ea4428d771d5057f0f93ecbf3c5d929571aca417 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 17 Jan 2019 17:47:46 +0800 Subject: [PATCH] Fix regression due to f80e6a37a9d748f43047141b18986f6386444bc9. --- launcher | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/launcher b/launcher index dad89fc..30245c8 100755 --- 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 -- 2.25.1