From a0ea96ea0126814c518ffdc50449005b5b55d28e Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 30 Jul 2011 16:08:05 -0400 Subject: mkinitcpio: keep going even when a hook isn't found Instead of bailing entirely, throw an error, and ensure that we exit with a non-zero status. The user might do something as simple as misspell a hook name which may or may not prevent a useful image from being created. Signed-off-by: Dave Reisner --- mkinitcpio | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkinitcpio b/mkinitcpio index 0116722..72e7ec8 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -312,7 +312,8 @@ for hook in ${HOOKS}; do fi parse_hook else - die "Hook '$hook' can not be found." + error "Hook '$hook' can not be found." + (( ++builderrors )) fi done -- cgit v1.2.3-24-g4f1b