]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
ubuntu-cloud-prep hook: fix debug helper to not inappropriately fail
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 9 Oct 2013 18:01:18 +0000 (13:01 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 9 Oct 2013 18:03:56 +0000 (13:03 -0500)
Bug found by Vincent Ladeuil <vila+ci@canonical.com>
Fix suggested by Scott Moser <smoser@ubuntu.com>

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
hooks/ubuntu-cloud-prep

index f0b30ea60523eed93c65c0fc9da52eff5710ae98..b3cf2325d96573a6ca45ca22cdd7306a070f308f 100755 (executable)
@@ -16,7 +16,7 @@ set -f
 VERBOSITY="0"
 
 error() { echo "$@" 1>&2; }
-debug() { [ "$VERBOSITY" -ge "$1" ] || return; shift; error "$@"; }
+debug() { [ "$VERBOSITY" -ge "$1" ] || return 0; shift; error "$@"; }
 fail() { [ $# -eq 0 ] || error "$@"; exit 1; }
 
 prep_usage() {