From: Guo Xiang Tan Date: Thu, 17 Jan 2019 02:03:28 +0000 (+0800) Subject: FIX: Print usage when config is not passed to launcher. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f80e6a37a9d748f43047141b18986f6386444bc9;p=discourse_docker.git FIX: Print usage when config is not passed to launcher. --- diff --git a/launcher b/launcher index 06588fd..dad89fc 100755 --- a/launcher +++ b/launcher @@ -55,6 +55,11 @@ while [ ${#} -gt 0 ]; do shift 1 done +if [[ -z $config ]]; then + usage + exit 1 +fi + # Docker doesn't like uppercase characters, spaces or special characters, catch it now before we build everything out and then find out re='[[:upper:]/ !@#$%^&*()+~`=]' if [[ $config =~ $re ]];