1
0
Fork 0
mirror of https://github.com/cisagov/log4j-affected-db.git synced 2024-11-22 08:30: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:
Felddy 2020-06-22 17:02:03 -04:00
parent c5e7edf46b
commit 482a370679
No known key found for this signature in database
GPG key ID: AFD7E112AF75260E

View file

@ -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'