From 37b2555b68320cd6c900d6879d08db82a481215f Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 19 Feb 2013 12:42:39 +1100 Subject: Allow hooks to take arguments that are specified when they are run Signed-off-by: Martin Schwenke --- autocluster | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autocluster b/autocluster index f4a9b42..8d7ae2f 100755 --- a/autocluster +++ b/autocluster @@ -149,10 +149,11 @@ register_hook () run_hooks () { local hook_var="$1" + shift local i for i in ${!hook_var} ; do - $i + $i "$@" done } -- cgit