Fix pattern usage for Zsh
authorMichael Prokop <mika@grml.org>
Mon, 15 Jun 2015 21:05:43 +0000 (23:05 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 15 Jun 2015 21:05:43 +0000 (23:05 +0200)
Recent Zsh versions seems to have changed the behaviour of
case patterns and the '|' doesn't work as intended, causing
the following error message:

| bad pattern: [q

grml-quickconfig

index de47f21..26d0ca9 100755 (executable)
@@ -159,7 +159,7 @@ while : ; do
     echo
     get_key INPUT
     case $INPUT in
-        [q|Q|$'\n'])
+        [qQ$'\n'])
             echo $INPUT
             break
             ;;