Bastian Blank
2011-Oct-26 23:43 UTC
[Pkg-xen-changes] r943 - trunk/xen-common/debian/scripts
Author: waldi Date: Wed Oct 26 23:43:53 2011 New Revision: 943 Log: debian/scripts/xen-dir, debian/scripts/xen-version: Always write error messages. Modified: trunk/xen-common/debian/scripts/xen-dir trunk/xen-common/debian/scripts/xen-version Modified: trunk/xen-common/debian/scripts/xen-dir =============================================================================--- trunk/xen-common/debian/scripts/xen-dir Wed Oct 26 23:37:11 2011 (r942) +++ trunk/xen-common/debian/scripts/xen-dir Wed Oct 26 23:43:53 2011 (r943) @@ -1,5 +1,4 @@ #!/bin/sh -e -VERBOSE=1 VERSION=$(. /usr/lib/xen-common/bin/xen-version); RET=$?; [ $RET -eq 0 ] || exit $RET Modified: trunk/xen-common/debian/scripts/xen-version =============================================================================--- trunk/xen-common/debian/scripts/xen-version Wed Oct 26 23:37:11 2011 (r942) +++ trunk/xen-common/debian/scripts/xen-version Wed Oct 26 23:43:53 2011 (r943) @@ -1,17 +1,7 @@ #!/bin/sh -e -while getopts "v" OPT; do - case "$OPT" in - v) - VERBOSE=1 - ;; - esac -done - error() { - if [ "$VERBOSE" ]; then - echo "ERROR: " "$@" >&2 - fi + echo "ERROR: " "$@" >&2 exit 1 }