From f28a70ca5eedccbbf60319801bff00d061a51065 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 15 Dec 2012 19:16:25 -0500 Subject: functions: always force a PATH lookup for type Signed-off-by: Dave Reisner --- functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions b/functions index 4d7b2ea..90ee02e 100644 --- a/functions +++ b/functions @@ -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 -- cgit v1.2.3-24-g4f1b