Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eckersley <pde@eff.org>2015-11-13 12:30:34 +0300
committerPeter Eckersley <pde@eff.org>2015-11-13 12:31:14 +0300
commit3551ffbd648df1d8929e8e5302bee36f08409c90 (patch)
tree61c6b57e570af87e71d386ee9eadd830e1a2f109 /letsencrypt-auto
parent153022c8428afcd14b2b38157da2f419c6a147d1 (diff)
Replace "which" with "command -v"
Since the latter is at least semi-POSIX compliant: http://pubs.opengroup.org/onlinepubs/009696899/utilities/command.html Avoids the need for #1486
Diffstat (limited to 'letsencrypt-auto')
-rwxr-xr-xletsencrypt-auto6
1 files changed, 3 insertions, 3 deletions
diff --git a/letsencrypt-auto b/letsencrypt-auto
index 25c83cc08..44de7fbf2 100755
--- a/letsencrypt-auto
+++ b/letsencrypt-auto
@@ -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!"