diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-12-07 16:26:55 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-12-07 16:26:55 +0000 |
commit | 75c179dbaaa744c493e5e02bdcfbfc874e25766b (patch) | |
tree | 27b0563fe3cdd0bb6cceddb8fa281c9eb8cf4490 | |
parent | 2dfc659c33c5ceb298e8027e219547416b286661 (diff) | |
download | febootstrap-75c179dbaaa744c493e5e02bdcfbfc874e25766b.tar.gz febootstrap-75c179dbaaa744c493e5e02bdcfbfc874e25766b.tar.xz febootstrap-75c179dbaaa744c493e5e02bdcfbfc874e25766b.zip |
autobuild: Factor out HOSTNAME variable.
-rwxr-xr-x | autobuild.sh | 7 |
1 files changed, 4 insertions, 3 deletions
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 <<EOF This is an automatic message generated by the builder on -$(hostname -s) for $PROJECT. Log files from the build +$HOSTNAME for $PROJECT. Log files from the build follow below. $(uname -a) |