setup.sh: replace type -p with test -e
type -p will exit 1 on failure. Test makes the intent clearer here.
This commit is contained in:
parent
ac27528177
commit
b49f22fd3e
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ _callImplicitHook() {
|
|||
local hookName="$2"
|
||||
if declare -F "$hookName" > /dev/null; then
|
||||
"$hookName"
|
||||
elif type -p "$hookName" > /dev/null; then
|
||||
elif test -e "$hookName" ; then
|
||||
source "$hookName"
|
||||
elif [ -n "${!hookName:-}" ]; then
|
||||
eval "${!hookName}"
|
||||
|
|
Loading…
Reference in a new issue