From: Guo Xiang Tan Date: Thu, 17 Jan 2019 09:47:46 +0000 (+0800) Subject: Fix regression due to f80e6a37a9d748f43047141b18986f6386444bc9. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ea4428d771d5057f0f93ecbf3c5d929571aca417;p=discourse_docker.git Fix regression due to f80e6a37a9d748f43047141b18986f6386444bc9. --- 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