]> git.tuebingen.mpg.de Git - gsu.git/blobdiff - subcommand
subcommand: Avoid referencing possibly undefined $ret.
[gsu.git] / subcommand
index 3ff31f0a6492e6d3420d533de96d9e02e358825a..261e35f5e39b6f377529c24a136427106d6301cb 100644 (file)
@@ -549,6 +549,7 @@ gsu()
        # external commands
        for i in $gsu_cmds; do
                if test "$arg" = "$i"; then
+                       ret=$GSU_SUCCESS
                        com_$arg "$@"
                        if (("$ret" < 0)); then
                                gsu_err_msg