summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-06-12 03:13:17 +0200
committerThomas Bächler <thomas@archlinux.org>2011-06-25 12:25:45 +0200
commitbb2b9737a8343a1a3bb87a15ffb605ce8ff2af70 (patch)
tree94932c144b61193a251cd396cc5a0c2d04bd0843 /functions
parent71f3c2b390e3359c18ad3552ce3ece142937f034 (diff)
downloadmkinitcpio-bb2b9737a8343a1a3bb87a15ffb605ce8ff2af70.tar.gz
mkinitcpio-bb2b9737a8343a1a3bb87a15ffb605ce8ff2af70.tar.xz
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 <d@falconindy.com>
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
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