From d479474440713572d6d096271f3c60d82a6c9bad Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 21 Jan 2009 14:36:45 +1100 Subject: [PATCH] Check for git-send-email and die if not found Signed-off-by: martin f. krafft --- tg-mail.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tg-mail.sh b/tg-mail.sh index f5c0cf4..8d3b632 100644 --- a/tg-mail.sh +++ b/tg-mail.sh @@ -29,6 +29,10 @@ done base_rev="$(git rev-parse --short --verify "refs/top-bases/$name" 2>/dev/null)" || die "not a TopGit-controlled branch" +if ! git send-emmail --help >/dev/null 2>&1; then + die "git send-email command not available" +fi + if [ -n "$in_reply_to" ]; then send_email_args="$send_email_args --in-reply-to=$in_reply_to" fi -- 2.30.2