From abcf2a97a1663c54388b040bd5c47345e5c890f1 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 30 Jul 2018 08:21:25 +0200 Subject: [PATCH] Make launcher work with french locale (among others) (#395) On several locales others than C, A-Z might match more than A to Z, due to different collation order. See https://unix.stackexchange.com/questions/227070/why-does-a-z-match-lowercase-letters-in-bash for explanation. --- launcher | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher b/launcher index a8e50da..f34acc9 100755 --- a/launcher +++ b/launcher @@ -45,11 +45,11 @@ while [ ${#} -gt 0 ]; do done # 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/ !@#$%^&*()+~`=]' +re='[[:upper:]/ !@#$%^&*()+~`=]' 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 "ERROR: Config name '$config' must not contain upper case characters, spaces or special characters. Correct config name and rerun $0." echo exit 1 fi -- 2.25.1