From 694b3454a25eb66d8c63e9c97abf19d678d4ba80 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 26 Mar 2010 15:42:39 -0400 Subject: Improve pathname handling for sendmail. --- repo/hooks/ciabot.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'repo') diff --git a/repo/hooks/ciabot.sh b/repo/hooks/ciabot.sh index 3271d39d..6c8799fd 100755 --- a/repo/hooks/ciabot.sh +++ b/repo/hooks/ciabot.sh @@ -57,13 +57,15 @@ from="${LOGNAME}@${host}" to="cia@cia.vc" # SMTP client to use - may need to edit the absolute pathname for your system -sendmail="/usr/sbin/sendmail -t -f ${from}" +sendmail="sendmail -t -f ${from}" # # No user-serviceable parts below this line: # -PATH="$PATH:`git --exec-path`" +# Should include both places sendmail is likely to lurk +# and the git private command directory. +PATH="$PATH:/usr/sbin/:`git --exec-path`" if [ $# -eq 0 ] ; then refname=$(git symbolic-ref HEAD 2>/dev/null) -- cgit v1.2.1