Joerg Jaspert pushed to branch master at Debian FTP Team / dak
Commits:
-
3b42dc75
by Joerg Jaspert at 2018-04-11T22:07:52+02:00
1 changed file:
Changes:
... | ... | @@ -33,12 +33,12 @@ function onerror() { |
33 | 33 |
else
|
34 | 34 |
subject="${subject} (interrupted)"
|
35 | 35 |
fi
|
36 |
- subject="${subject} dinstall error at ${ERRDATE} in ${STAGEFILE} - (Be quiet, Brain, or I'll stab you with a Q-tip)"
|
|
36 |
+ subject="${subject} dinstall error at ${ERRDATE} in ${STAGEFILE:-} - (Be quiet, Brain, or I'll stab you with a Q-tip)"
|
|
37 | 37 |
|
38 |
- if [[ -r ${STAGEFILE}.log ]]; then
|
|
38 |
+ if [[ -r ${STAGEFILE:-/nonexistant}.log ]]; then
|
|
39 | 39 |
cat "${STAGEFILE}.log"
|
40 | 40 |
else
|
41 |
- echo "file ${STAGEFILE}.log does not exist, sorry"
|
|
41 |
+ echo "file ${STAGEFILE:-}.log does not exist, sorry"
|
|
42 | 42 |
fi | mail -s "${subject}" -a "X-Debian: DAK" -a "From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>" cron@ftp-master.debian.org
|
43 | 43 |
}
|
44 | 44 |
|