diff --git a/monkey/monkey_island/windows/build_pyinstaller.bat b/monkey/monkey_island/windows/build_pyinstaller.bat index eaf771ccf..2a26079d8 100644 --- a/monkey/monkey_island/windows/build_pyinstaller.bat +++ b/monkey/monkey_island/windows/build_pyinstaller.bat @@ -1,4 +1,8 @@ pyinstaller -F --log-level=DEBUG --clean --upx-dir=.\bin monkey_island.spec -move dist\monkey_island.exe monkey_island.exe -rmdir /S /Q build -rmdir /S /Q dist +move /Y dist\monkey_island.exe monkey_island.exe +IF EXIST build ( + rmdir /S /Q build +) +IF EXIST dist ( + rmdir /S /Q dist +) \ No newline at end of file