mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-10 20:43:48 -05:00
Use command and type instead of which (#2144)
`which` has been deprecated in Debian's debianutils 5.0+ They suggest using `type` and `command` as replacements:3a8dd10b45,610a65c6ef
This commit is contained in:
@@ -183,7 +183,7 @@ OUT
|
||||
}
|
||||
|
||||
@test "pyenv-install has usage help preface" {
|
||||
run head "$(which pyenv-install)"
|
||||
run head "$(command -v pyenv-install)"
|
||||
assert_output_contains 'Usage: pyenv install'
|
||||
}
|
||||
|
||||
@@ -212,6 +212,6 @@ OUT
|
||||
}
|
||||
|
||||
@test "pyenv-uninstall has usage help preface" {
|
||||
run head "$(which pyenv-uninstall)"
|
||||
run head "$(command -v pyenv-uninstall)"
|
||||
assert_output_contains 'Usage: pyenv uninstall'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user