From 87756d6d65131df1be04a19a274754fe22c620fe Mon Sep 17 00:00:00 2001 From: Eric Hoxworth Date: Fri, 8 May 2015 10:04:30 -0500 Subject: [PATCH] Added config name check to prevent docker name errors after build. --- launcher | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/launcher b/launcher index 57f034b..2d47ff2 100755 --- a/launcher +++ b/launcher @@ -4,6 +4,16 @@ command=$1 config=$2 opt=$3 +# Docker doesn't like uppercase characters, spaces or special characters, catch it now before we build everything out and then find out +re='[A-Z/ !@#$%^&*()+~`=]' +if [[ $config =~ $re ]]; + then + echo + echo "ERROR: Config name must not contain upper case characters, spaces or special characters. Correct config name and rerun $0." + echo + exit 1 +fi + cd "$(dirname "$0")" docker_min_version='1.2.0' -- 2.25.1