Be more careful with subshells (Closes: #623356).
This commit is contained in:
parent
ceefa557a9
commit
11eeea6f6c
|
@ -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
|
||||
|
|
|
@ -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}"
|
||||
|
|
|
@ -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})"
|
||||
|
|
Loading…
Reference in New Issue