From bb2b9737a8343a1a3bb87a15ffb605ce8ff2af70 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 11 Jun 2011 21:13:17 -0400 Subject: mkinitcpio: catch errors in parse_hook It would be better to catch errors in build as well, but this isn't entirely feasible due to the expectation of some builtins to return non-zero during normal operations (e.g., read returns 1 on EOF). Addresses FS#20661 Signed-off-by: Dave Reisner --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions') diff --git a/functions b/functions index 5ed543f..580e636 100644 --- a/functions +++ b/functions @@ -202,7 +202,7 @@ add_module() { add_file "$path" || return else error "module '$module' not found" - return + return 1 fi # explicit module depends -- cgit v1.2.3-24-g4f1b