diff options
-rw-r--r-- | functions | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -216,7 +216,7 @@ funcgrep() { list_hookpoints() { local funcs script - script=$(PATH=$_d_hooks type -p "$1") || return 0 + script=$(PATH=$_d_hooks type -P "$1") || return 0 mapfile -t funcs < <(funcgrep '^run_[[:alnum:]_]+' "$script") @@ -467,7 +467,7 @@ add_runscript() { local funcs fn script hookname=${BASH_SOURCE[1]##*/} - if ! script=$(PATH=$_d_hooks type -p "$hookname"); then + if ! script=$(PATH=$_d_hooks type -P "$hookname"); then error "runtime script for \`%s' not found" "$hookname" return fi @@ -615,7 +615,7 @@ run_build_hook() { local MODULES= BINARIES= FILES= SCRIPT= # find script in install dirs - if ! script=$(PATH=$_d_install type -p "$hook"); then + if ! script=$(PATH=$_d_install type -P "$hook"); then error "Hook '$hook' cannot be found" return 1 fi |