提交 6e852147 编写于 作者: J Joerg Jaspert

use error instead of ERR

Signed-off-by: NJoerg Jaspert <joerg@debian.org>
上级 d3e7dbdd
......@@ -58,7 +58,6 @@ function cleanup() {
# If we error out this one is called, *FOLLOWED* by cleanup above
function onerror() {
ERRDATE=$(date "+%Y.%m.%d-%H:%M:%S")
error=${ERR:-"false"}
subject="ATTENTION ATTENTION!"
if [ "${error}" = "false" ]; then
......@@ -457,6 +456,8 @@ function stage() {
ARGS='GO[@]'
local "${!ARGS}"
error=${ERR:-"false"}
STAGEFILE="${stagedir}/${FUNC}"
if [ -f "${STAGEFILE}" ]; then
stamptime=$(/usr/bin/stat -c %Z "${STAGEFILE}")
......@@ -486,7 +487,7 @@ function stage() {
exit 42
fi
if [ "${ERR}" = "false" ]; then
if [ "${error}" = "false" ]; then
set +e
fi
${FUNC} ${ARGS}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册