mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 08:08:00 +02:00
Abort when no Pythons are found
It seems ill-advised to continue without setting the LE_PYTHON variable, when the very next command tries to use it.
This commit is contained in:
@@ -97,6 +97,7 @@ DeterminePythonVersion() {
|
|||||||
export LE_PYTHON=${LE_PYTHON:-python}
|
export LE_PYTHON=${LE_PYTHON:-python}
|
||||||
else
|
else
|
||||||
echo "Cannot find any Pythons... please install one!"
|
echo "Cannot find any Pythons... please install one!"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PYVER=`$LE_PYTHON --version 2>&1 | cut -d" " -f 2 | cut -d. -f1,2 | sed 's/\.//'`
|
PYVER=`$LE_PYTHON --version 2>&1 | cut -d" " -f 2 | cut -d. -f1,2 | sed 's/\.//'`
|
||||||
|
|||||||
Reference in New Issue
Block a user