]> git.tue.mpg.de Git - gsu.git/commitdiff
gsu: Allow empty default values.
authorAndre Noll <maan@systemlinux.org>
Fri, 12 Jun 2009 11:33:24 +0000 (13:33 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:36:07 +0000 (21:36 +0200)
funcs/gsu

index 81066f71b23210483e028f3d9a044dec9c9c2035..18b7c13e0774cd62c6d52e2c07670f0fd6709615 100644 (file)
--- a/funcs/gsu
+++ b/funcs/gsu
@@ -311,9 +311,6 @@ _gsu_check_options()
                        [[ -z "$val" ]] && return
                        ;;
                false|no)
-                       ret=-$E_NO_DEFAULT
-                       result="$name"
-                       [[ -z "$default_value" ]] && return
                        ;;
                *)
                        ret=-$E_GSU_BAD_BOOL