Merge pull request #1487 from letsencrypt/whichhunt

Replace "which" with "command -v"
This commit is contained in:
bmw 2015-11-13 09:50:44 -08:00
commit 5c638bea38
2 changed files with 4 additions and 4 deletions

View file

@ -44,7 +44,7 @@ apt-get install -y --no-install-recommends \
libffi-dev \
ca-certificates \
if ! which virtualenv > /dev/null ; then
if ! command -v virtualenv > /dev/null ; then
echo Failed to install a working \"virtualenv\" command, exiting
exit 1
fi

View file

@ -83,11 +83,11 @@ ExperimentalBootstrap() {
}
DeterminePythonVersion() {
if which python2 > /dev/null ; then
if command -v python2 > /dev/null ; then
export LE_PYTHON=${LE_PYTHON:-python2}
elif which python2.7 > /dev/null ; then
elif command -v python2.7 > /dev/null ; then
export LE_PYTHON=${LE_PYTHON:-python2.7}
elif which python > /dev/null ; then
elif command -v python > /dev/null ; then
export LE_PYTHON=${LE_PYTHON:-python}
else
echo "Cannot find any Pythons... please install one!"