mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-04 14:05:41 -07:00
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
|
||||
|
||||
for hook do case $hook in
|
||||
*/*)
|
||||
# Absolute path to hook.
|
||||
"$hook" "$_type" "$_name" "$_path"
|
||||
;;
|
||||
|
||||
*)
|
||||
# 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
|
||||
for hook do case $hook in *?*)
|
||||
"$hook" "$_type" "$_name" "$_path" ||
|
||||
die "$_name" "$_type hook failed: '$hook'"
|
||||
esac done
|
||||
}
|
||||
|
||||
run_hook_pkg() {
|
||||
|
Loading…
Reference in New Issue
Block a user