Switch to a POSIX compliant command... command.

This is the way.

I learned something today.

https://unix.stackexchange.com/questions/85249/why-not-use-which-what-to-use-then
pull/113/head
Felddy 4 years ago
parent c5e7edf46b
commit 482a370679
No known key found for this signature in database
GPG Key ID: AFD7E112AF75260E
  1. 2
      setup-env

@ -64,7 +64,7 @@ done
eval set -- "$PARAMS"
# Check to see if pyenv is installed
if [ -z "$(which pyenv)" ] || [ -z "$(which pyenv-virtualenv)" ]; then
if [ -z "$(command -v pyenv)" ] || [ -z "$(command -v pyenv-virtualenv)" ]; then
echo "pyenv and pyenv-virtualenv are required."
if [[ "$OSTYPE" == "darwin"* ]]; then
cat << 'END_OF_LINE'

Loading…
Cancel
Save