FIX: Print usage when config is not passed to launcher.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Thu, 17 Jan 2019 02:03:28 +0000 (10:03 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Thu, 17 Jan 2019 02:03:28 +0000 (10:03 +0800)
launcher

index 06588fd84e6f0e1093ed0ebfc1f8e00022b60af9..dad89fc2674cad3822c4e4b29e69f48377352820 100755 (executable)
--- 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 ]];