mirror of
https://github.com/pyenv/pyenv.git
synced 2025-01-06 00:21:01 +00:00
Use test -aP instead of which -a in test helper
The former is a bash builtin, latter not necessarily available. For example, `which` is deprecated in Debian's debianutils >= 5.0.
This commit is contained in:
parent
6cc7bff383
commit
68fca03bb8
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ path_without() {
|
|||
local exe="$1"
|
||||
local path=":${PATH}:"
|
||||
local found alt util
|
||||
for found in $(which -a "$exe"); do
|
||||
for found in $(type -aP "$exe"); do
|
||||
found="${found%/*}"
|
||||
if [ "$found" != "${RBENV_ROOT}/shims" ]; then
|
||||
alt="${RBENV_TEST_DIR}/$(echo "${found#/}" | tr '/' '-')"
|
||||
|
|
Loading…
Reference in a new issue