diff options
author | Martin Schwenke <martin@meltin.net> | 2013-02-19 12:42:39 +1100 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2013-02-19 12:42:39 +1100 |
commit | 37b2555b68320cd6c900d6879d08db82a481215f (patch) | |
tree | f38f14b0445d8c6ee73a8cb8ecdcde7ead7e89af | |
parent | 7e6855c05d0d9f508595cd18c3636e8d7b863280 (diff) | |
download | autocluster-37b2555b68320cd6c900d6879d08db82a481215f.tar.gz autocluster-37b2555b68320cd6c900d6879d08db82a481215f.tar.xz autocluster-37b2555b68320cd6c900d6879d08db82a481215f.zip |
Allow hooks to take arguments that are specified when they are run
Signed-off-by: Martin Schwenke <martin@meltin.net>
-rwxr-xr-x | autocluster | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |