Mingw script should not run if tools are not present.

This commit is contained in:
lotodore
2008-05-16 16:12:20 +00:00
parent a2105ceb07
commit 626b778c77
@@ -21,6 +21,8 @@ echo test > pokerth123_delete_me.txt
if not exist %PKTH_BaseDir%\pokerth123_delete_me.txt goto noWriteAccess
del %PKTH_BaseDir%\pokerth123_delete_me.txt
if exist %PKTH_BaseDir%\pokerth123_delete_me.txt goto noWriteAccess
if not exist %PKTH_OldDir%\third_party_apps\curl.exe goto noTools
if not exist %PKTH_OldDir%\third_party_apps\7za.exe goto noTools
echo Using "%PKTH_BaseDir%" as base directory.
echo.
@@ -299,5 +301,10 @@ echo Make sure that the base directory exists and is writable.
echo Use a FULL PATH without trailing slash for the base directory.
goto pkth_end
:noTools
echo Tools are missing. Please download and extract the full package
echo before running this script.
goto pkth_end
:pkth_end
cd /d %PKTH_OldDir%