From 568f28a882f5a74ff795d449f1334f5216b4928f Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 9 Nov 2015 18:50:20 -0800 Subject: [PATCH] tg-create.sh: switch from warn to err The messages are really errors not warnings, make it so. Signed-off-by: Kyle J. McKay --- tg-create.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tg-create.sh b/tg-create.sh index adc80ee..627e188 100644 --- a/tg-create.sh +++ b/tg-create.sh @@ -109,11 +109,11 @@ esac; shift; done [ $# -gt 0 -o -n "$remote$msgfile$msg$nocommit$nodeps" ] || continue=1 [ -z "$continue" -o "$#$remote$msgfile$msg$nocommit$nodeps" = "0" ] || usage 1 [ -n "$continue" -o $# -eq 0 ] || { name="$1"; shift; } -[ -n "$continue" -o -n "$name" ] || { warn "no branch name given"; usage 1; } +[ -n "$continue" -o -n "$name" ] || { err "no branch name given"; usage 1; } [ -z "$remote" -o -n "$rname" ] || rname="$name" -[ -z "$remote" -o -z "$msg$msgfile$nocommit$nodeps" ] || { warn "-r may not be combined with other options"; usage 1; } -[ $# -eq 0 -o -z "$remote" ] || { warn "deps not allowed with -r"; usage 1; } -[ $# -le 1 -o -z "$nodeps" ] || { warn "--no-deps requires at most one "; usage 1; } +[ -z "$remote" -o -z "$msg$msgfile$nocommit$nodeps" ] || { err "-r may not be combined with other options"; usage 1; } +[ $# -eq 0 -o -z "$remote" ] || { err "deps not allowed with -r"; usage 1; } +[ $# -le 1 -o -z "$nodeps" ] || { err "--no-deps allows at most one "; usage 1; } [ -z "$msg" -o -z "$msgfile" ] || die "only one -F or -m option is allowed" [ -z "$continue" ] || is_active || die "no tg create is currently active" -- 2.11.4.GIT