Put off rm-ing the venv for as long as possible, since it triggers a re-bootstrap.

If DeterminePythonVersion has an error, we shouldn't re-bootstrap.
This commit is contained in:
Erik Rose 2015-12-03 19:18:48 -05:00
parent 55a52d1b96
commit 4bcd594234

View file

@ -174,8 +174,8 @@ elif [ "$1" = "--no-self-upgrade" ]; then
echo "Reusing old virtual environment."
else
echo "Creating virtual environment..."
rm -rf "$VENV_PATH"
DeterminePythonVersion
rm -rf "$VENV_PATH"
if [ "$VERBOSE" = 1 ]; then
virtualenv --no-site-packages --python $LE_PYTHON $VENV_PATH
else