From 11eeea6f6c81d69c2c685bb6dafbb8126094ff48 Mon Sep 17 00:00:00 2001 From: liandro sg Date: Wed, 18 May 2011 19:42:51 +0200 Subject: Be more careful with subshells (Closes: #623356). --- scripts/build/lb_chroot_local-hooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/build/lb_chroot_local-hooks') diff --git a/scripts/build/lb_chroot_local-hooks b/scripts/build/lb_chroot_local-hooks index c163ca3a1..c6482c569 100755 --- a/scripts/build/lb_chroot_local-hooks +++ b/scripts/build/lb_chroot_local-hooks @@ -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})" -- cgit v1.2.3