aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/auto-build/mail-mingw-log-hack.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/auto-build/mail-mingw-log-hack.sh b/scripts/auto-build/mail-mingw-log-hack.sh
index 0819bc05..57c19764 100755
--- a/scripts/auto-build/mail-mingw-log-hack.sh
+++ b/scripts/auto-build/mail-mingw-log-hack.sh
@@ -17,7 +17,8 @@ mailbody_on_failure () {
}
-for logfile in $(ls -1 /home/apt/www/auto-build/${DATE}/logs/${DATE}_*_mingw*.txt); do
+for logfile in /home/apt/www/auto-build/${DATE}/logs/${DATE}_*_mingw*.txt; do
+ if [ -r "${logfile}" ]; then
completion_test=$(tail -1 "${logfile}")
if [ "x${completion_test}" != "xSUCCESS" ]; then
if [ "x${RECIPIENT}" != "x" ]; then
@@ -25,4 +26,5 @@ for logfile in $(ls -1 /home/apt/www/auto-build/${DATE}/logs/${DATE}_*_mingw*.tx
mailbody_on_failure "${logfile}" | mail -s "autobuild: $logfile" ${RECIPIENT}
fi
fi
+ fi
done