From: Andre Noll Date: Thu, 25 Mar 2010 14:23:25 +0000 (+0100) Subject: gsu: Fix com_prefs() for invalid preferences. X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=b809fa90a89462bf30746325c9fe152851a000bd;p=gsu.git gsu: Fix com_prefs() for invalid preferences. The prefs command would print only empty values for all options that come after an invalid option. Refuse to execute com_prefs() in this case is the most simple fix. --- diff --git a/funcs/gsu b/funcs/gsu index d72f54f..7e066f7 100644 --- a/funcs/gsu +++ b/funcs/gsu @@ -362,7 +362,7 @@ gsu() _gsu_init_errors _gsu_check_options if [[ "$ret" -lt 0 ]]; then - if [[ "$1" != "help" && "$1" != "man" && "$1" != "prefs" ]]; then + if [[ "$1" != "help" && "$1" != "man" ]]; then gsu_err_msg exit 1 fi