git.samba.org
/
autocluster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e6855c
)
Allow hooks to take arguments that are specified when they are run
author
Martin Schwenke
<martin@meltin.net>
Tue, 19 Feb 2013 01:42:39 +0000
(12:42 +1100)
committer
Martin Schwenke
<martin@meltin.net>
Tue, 19 Feb 2013 01:42:39 +0000
(12:42 +1100)
Signed-off-by: Martin Schwenke <martin@meltin.net>
autocluster
patch
|
blob
|
history
diff --git
a/autocluster
b/autocluster
index f4a9b426b874bdf212c2f27825d22a4f19aa5b16..8d7ae2f572db715ae9c1b5de18b6caea36013f37 100755
(executable)
--- 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
}