Merge pull request #1508 from samlanning/python-version-order-check

Check for python2.7 before python2 in letsencrypt-auto
This commit is contained in:
Peter Eckersley
2015-11-14 19:37:11 -08:00
+3 -3
View File
@@ -83,10 +83,10 @@ ExperimentalBootstrap() {
}
DeterminePythonVersion() {
if command -v python2 > /dev/null ; then
export LE_PYTHON=${LE_PYTHON:-python2}
elif command -v python2.7 > /dev/null ; then
if command -v python2.7 > /dev/null ; then
export LE_PYTHON=${LE_PYTHON:-python2.7}
elif command -v python2 > /dev/null ; then
export LE_PYTHON=${LE_PYTHON:-python2}
elif command -v python > /dev/null ; then
export LE_PYTHON=${LE_PYTHON:-python}
else