Be more careful with subshells (Closes: #623356).

This commit is contained in:
liandro sg 2011-05-18 19:42:51 +02:00 committed by Daniel Baumann
parent ceefa557a9
commit 11eeea6f6c
3 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ then
fi
# Executing hook
./"${HOOK}" || ( Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 )
./"${HOOK}" || { Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;}
done
# Creating stage file

View File

@ -55,7 +55,7 @@ do
fi
# Executing hook
Chroot chroot "./root/${HOOK}" || ( Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 )
Chroot chroot "./root/${HOOK}" || { Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;}
# Removing hook
rm -f chroot/root/"${HOOK}"

View File

@ -56,7 +56,7 @@ then
fi
# Executing hook
Chroot chroot "/root/$(basename ${HOOK})" || ( Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 )
Chroot chroot "/root/$(basename ${HOOK})" || { Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;}
# Removing hook
rm -f chroot/root/"$(basename ${HOOK})"