diff options
-rw-r--r-- | lib/funcs.sh | 3 | ||||
-rw-r--r-- | lib/hooks.sh | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/funcs.sh b/lib/funcs.sh index 66786a0..b60ae89 100644 --- a/lib/funcs.sh +++ b/lib/funcs.sh @@ -90,6 +90,9 @@ link() { fi ln -s "$1" "$2" + + call_hook "installed.$(basename $2)" "$2" + call_hook "installed" "$2" } choose_target() { diff --git a/lib/hooks.sh b/lib/hooks.sh index 2256914..408f084 100644 --- a/lib/hooks.sh +++ b/lib/hooks.sh @@ -12,7 +12,7 @@ call_hook() { debug "Running hook $HOOK" - hooks/$HOOK.hook 2>&1 | (while read line; do echo [hook: $HOOK] $line; done) + hooks/$HOOK.hook "$@" 2>&1 | (while read line; do echo [hook: $HOOK] $line; done) RET=${PIPESTATUS[0]} if [ $RET -ne 0 ]; then |