forked from kiss-community/kiss
kiss: make KISS_HOOK generic again, also skip empty tokens. Closes #229
This commit is contained in:
parent
509d911236
commit
4ebbfc094f
16
kiss
16
kiss
@ -120,18 +120,10 @@ run_hook() {
|
|||||||
|
|
||||||
unset IFS
|
unset IFS
|
||||||
|
|
||||||
for hook do case $hook in
|
for hook do case $hook in *?*)
|
||||||
*/*)
|
"$hook" "$_type" "$_name" "$_path" ||
|
||||||
# Absolute path to hook.
|
die "$_name" "$_type hook failed: '$hook'"
|
||||||
"$hook" "$_type" "$_name" "$_path"
|
esac done
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
# Hook in system-wide hook directory (/var/db/kiss/hooks).
|
|
||||||
# Hooks in this directory can be used via their basename.
|
|
||||||
"$sys_db/../hooks/$hook" "$_type" "$_name" "$_path"
|
|
||||||
;;
|
|
||||||
esac || die "$_name" "$_type hook failed: '$hook'"; done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run_hook_pkg() {
|
run_hook_pkg() {
|
||||||
|
Loading…
Reference in New Issue
Block a user