X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=autobuild.sh;h=4dc5828371336ac68bba589f243b083c02289d7a;hb=768f02b0855f605a82a9fca83f4c63cd9399cc60;hp=3eefc7ccdafb3217229f6cb357c7b1c10c30919f;hpb=2dfc659c33c5ceb298e8027e219547416b286661;p=febootstrap.git diff --git a/autobuild.sh b/autobuild.sh index 3eefc7c..4dc5828 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -2,18 +2,19 @@ PROJECT=febootstrap MAILTO=libguestfs@redhat.com +HOSTNAME="$(hostname -s)" #---------------------------------------------------------------------- # Helper functions. failed () { - mail -s "$(hostname -s) $PROJECT FAILED $1 $gitsha" $MAILTO < local-log + mail -s "$HOSTNAME $PROJECT FAILED $1 $gitsha" $MAILTO < local-log } ok () { - mail -s "$(hostname -s) $PROJECT success $gitsha" $MAILTO < local-log + mail -s "$HOSTNAME $PROJECT success $gitsha" $MAILTO < local-log } #---------------------------------------------------------------------- @@ -25,7 +26,7 @@ rm -f local-log cat > local-log <