Minor updates
This commit was SVN r1732.
Этот коммит содержится в:
родитель
398686dcd0
Коммит
2b6f79d94f
@ -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" <<EOF
|
||||
Creating nightly snapshot SVN tarball a success.
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user