27 Sep
2011
27 Sep
'11
1:22 a.m.
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 <dreisner@archlinux.org> --- mkinitcpio | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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 -- 1.7.6.4