diff --git a/tools/ensure_venv.cmd b/tools/ensure_venv.cmd index bf25fed42..054874648 100644 --- a/tools/ensure_venv.cmd +++ b/tools/ensure_venv.cmd @@ -8,7 +8,7 @@ if exist %venv_dir% ( echo Removing python virtual environment rmdir /S /Q %venv_dir% ) else ( - GOTO ERROR + GOTO END ) ) @@ -19,6 +19,7 @@ echo Creating python virtual environment @call %venv_dir%\Scripts\pip install -r %~dp0..\requirements.txt @call deactivate +:END EXIT /B %ERRORLEVEL% :ERROR