diff --git a/contrib/nightly/create_tarball.sh b/contrib/nightly/create_tarball.sh index 726ee8d1de..31571874c7 100755 --- a/contrib/nightly/create_tarball.sh +++ b/contrib/nightly/create_tarball.sh @@ -30,7 +30,14 @@ fi # send a mail send_mail() { - print "sending mail to $email" + outfile="$scratch_root/output.txt" + rm -f "$outfile" + touch "$outfile" + for file in `/bin/ls $scratch_root/logs/* | sort`; do + cat "$file" >> "$outfile" + done + Mail -s "=== CREATE ERROR ===" "$email" < "$outfile" + rm -f "$outfile" } # do the work @@ -135,6 +142,9 @@ for file in `/bin/ls *gz *bz2 | grep -v latest`; do sha1sum $file >> sha1sums.txt done +# remove temp dirs +rm -rf "$scratch_root/logs" "$scratch_root/ompi" + # send success mail Mail -s "Success" "$email" <