From d08fdeaf1df8e8b5ea379d311e8703c4c630ecb1 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 25 Jan 2012 21:09:19 -0500 Subject: function: avoid applying --try to all modules An error in logic here would cause the --try flag to be passed to all modules after the first, if a hook added modules ending with a '?'. Signed-off-by: Dave Reisner --- functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions b/functions index e5b4195..c85806a 100644 --- a/functions +++ b/functions @@ -341,10 +341,10 @@ parse_hook() { for item in $MODULES; do if [[ ${item:(-1)} = '?' ]]; then - try=--try - item=${item%\?} + add_module --try "${item%\?}" + else + add_module "$item" fi - add_module $try "$item" done for item in $BINARIES; do -- cgit v1.2.3-24-g4f1b