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:
Marius Gedminas 2015-12-08 11:30:13 +02:00
parent 3838ea4ad1
commit 73878f2457

View file

@ -97,6 +97,7 @@ DeterminePythonVersion() {
export LE_PYTHON=${LE_PYTHON:-python}
else
echo "Cannot find any Pythons... please install one!"
exit 1
fi
PYVER=`$LE_PYTHON --version 2>&1 | cut -d" " -f 2 | cut -d. -f1,2 | sed 's/\.//'`