]> git.tuebingen.mpg.de Git - gsu.git/commitdiff
gsu: Print the name of the invalid config variable on errors.
authorAndre Noll <maan@systemlinux.org>
Sun, 13 Jun 2010 23:46:21 +0000 (01:46 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:36:07 +0000 (21:36 +0200)
funcs/gsu

index ca2016a921335354698882caf508c0b09ae81cf1..b80fc919659c008420cc54d79890ea7d14ae4d7f 100644 (file)
--- a/funcs/gsu
+++ b/funcs/gsu
@@ -306,7 +306,7 @@ _gsu_check_options()
                # only.  Moreover it must not start with [a-zA-Z].
 
                ret=-$E_GSU_BAD_CONFIG_VAR
-               result="$name"
+               result="name: '$name'"
                # bash's =~ works only for 3.2 and newer, so use grep
                echo "$name" | grep '^[a-zA-Z][a-zA-Z_0123456789]*$' &> /dev/null;
                [[ $? -ne 0 ]] && return