From: Sebastian Pipping Date: Tue, 11 Jan 2011 16:18:58 +0000 (+0100) Subject: Catch errors from append_* (lesson from bug #246370) X-Git-Tag: v3.4.11~35 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=398daeb3b375b539d0ec37f90a0b32728fa48653;p=genkernel.git Catch errors from append_* (lesson from bug #246370) --- diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 77bb83e..03b3bdd 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -604,7 +604,7 @@ append_data() { if [ $# -eq 1 ] || isTrue ${var} then print_info 1 " >> Appending ${name} cpio data..." - ${func} + ${func} || gen_die "${func}() failed" fi }