]> git.tuebingen.mpg.de Git - gsu.git/commitdiff
gsu: Fix a typo in gsu_check_options().
authorAndre Noll <maan@systemlinux.org>
Fri, 19 Jun 2009 09:24:38 +0000 (11:24 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:36:07 +0000 (21:36 +0200)
This caused gsu to exit without an error message in case there is
an invalid option type given in the script that used gsu.

funcs/gsu

index 18b7c13e0774cd62c6d52e2c07670f0fd6709615..9bc7c7bcfb701aacb917e2604bde155871f26c65 100644 (file)
--- a/funcs/gsu
+++ b/funcs/gsu
@@ -330,7 +330,7 @@ _gsu_check_options()
                        [[ $ret -lt 0 ]] && return
                        ;;
                *)
-                       ret=-$E_BAD_OPTION_TYPE
+                       ret=-$E_GSU_BAD_OPTION_TYPE
                        result="$name/$option_type"
                        return
                esac