X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=misc%2Ftools%2Frsync-updater%2Fupdate-xonotic.bat;h=71aaee95bb0ac4cb6182135a625d4bea3559e71c;hb=5104751bb4d62796cc614c3284c35d70c0dc74d6;hp=38dbeccc337d503a5b12255166629adb76c17cde;hpb=8c5c7a7fb946332ec019bde977a99b6a04d31164;p=xonotic%2Fxonotic.git diff --git a/misc/tools/rsync-updater/update-xonotic.bat b/misc/tools/rsync-updater/update-xonotic.bat index 38dbeccc..71aaee95 100644 --- a/misc/tools/rsync-updater/update-xonotic.bat +++ b/misc/tools/rsync-updater/update-xonotic.bat @@ -2,12 +2,10 @@ if "%1" == "did-copy" goto copied cd %~dp0 -del /s /q %TEMP%\xonotic-rsync-updater +rmdir /s /q %TEMP%\xonotic-rsync-updater mkdir %TEMP%\xonotic-rsync-updater for %%f in (*.exe *.dll *.bat) do copy /b %%f %TEMP%\xonotic-rsync-updater\ %TEMP%\xonotic-rsync-updater\update-xonotic did-copy -del /s /q %TEMP%\xonotic-rsync-updater -pause exit :copied @@ -107,3 +105,5 @@ for %%f in (*.exe *.dll) do copy /b %%f %TEMP%\xonotic-rsync-updater\ %TEMP%\xonotic-rsync-updater\chmod -R a+x %target% :end +pause +rmdir /s /q %TEMP%\xonotic-rsync-updater