diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-03-26 15:42:39 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-03-26 15:42:39 -0400 |
commit | 694b3454a25eb66d8c63e9c97abf19d678d4ba80 (patch) | |
tree | 54afa1ece1c45f1d161d799eda04d4ab7dd99a92 /repo | |
parent | 82d09056fde8f01e81720481e55a98f2a5fbe57c (diff) | |
download | gpsd-694b3454a25eb66d8c63e9c97abf19d678d4ba80.tar.gz |
Improve pathname handling for sendmail.
Diffstat (limited to 'repo')
-rwxr-xr-x | repo/hooks/ciabot.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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) |