Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions build_tools/purge_archive.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
setlocal EnableDelayedExpansion
REM Remove old builds from the archive

if "%WORKSPACE%" == "" (
set "WORKWIN=%WORKSPACE:/=\%"

if "%WORKWIN%" == "" (
call "%~dp0..\installation_and_upgrade\define_latest_genie_python.bat"
) else (
if exist "%WORKSPACE%\Python3" rd /s /q %WORKSPACE%\Python3
if exist "%WORKWIN%\Python3" rd /s /q %WORKWIN%\Python3
if !errorlevel! neq 0 exit /b 1
call "%~dp0..\installation_and_upgrade\define_latest_genie_python.bat" %WORKSPACE%\Python3
call "%~dp0..\installation_and_upgrade\define_latest_genie_python.bat" %WORKWIN%\Python3
)
IF %errorlevel% neq 0 EXIT /b %errorlevel%

Expand Down
Loading