From f80e6a37a9d748f43047141b18986f6386444bc9 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 17 Jan 2019 10:03:28 +0800 Subject: [PATCH] FIX: Print usage when config is not passed to launcher. --- launcher | 5 +++++ 1 file changed, 5 insertions(+) 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 ]]; -- 2.25.1