mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-22 16:40:48 +00:00
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
This commit is contained in:
parent
c5e7edf46b
commit
482a370679
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue