Package: util-vserver
Version: 0.30.212-1

vserver currently does:

|: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}

|test -e "$UTIL_VSERVER_VARS" || 
|   {
|        echo $"Can not find util-vserver installation (the file 
'$UTIL_VSERVER_V
|ARS' is expected); aborting..." >&2
|        exit 1
|   }

Policy doceument recommends:
          test -f <program-executed-later-in-script> || exit 0

So I think this should either be silent and exit 0, or perhaps an
earlier test should do something like [ -e /usr/sbin/vserver ] || exit 0.

Then the error message and exit would be automatic, if the script were
set -e (hint, hint):

$ . /asdf
bash: /asdf: No such file or directory
$ echo $?
1




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to