Commit 1e0f62ac by Serge Hallyn

ubuntu-cloud-prep hook: fix debug helper to not inappropriately fail

Bug found by Vincent Ladeuil <vila+ci@canonical.com> Fix suggested by Scott Moser <smoser@ubuntu.com> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 41246cee
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment