From: martin f. krafft Date: Wed, 21 Jan 2009 03:36:45 +0000 (+1100) Subject: Check for git-send-email and die if not found X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=d479474440713572d6d096271f3c60d82a6c9bad Check for git-send-email and die if not found Signed-off-by: martin f. krafft --- 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