Skip to content

Commit

Permalink
Fixed safety checks in INSTALL.BAT to work from CD-ROM drive
Browse files Browse the repository at this point in the history
  • Loading branch information
fonic committed Jul 17, 2020
1 parent b487b28 commit 801ebca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions INSTALL.BAT
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ REM
REM Safety checks
REM
IF NOT EXIST .\INSTALL.BAT GOTO CHKFAIL
IF NOT EXIST .\CONFIG\NUL GOTO CHKFAIL
IF NOT EXIST .\TOOLS\NUL GOTO CHKFAIL
IF NOT EXIST .\CONFIG\*.* GOTO CHKFAIL
IF NOT EXIST .\TOOLS\*.* GOTO CHKFAIL
GOTO CHKPASS
:CHKFAIL
ECHO.
ECHO This script needs to be called from within the directory it is
ECHO stored in. Please change the current working directory using CD.
ECHO Aborting.
ECHO.
GOTO END
GOTO EXIT
:CHKPASS

REM
Expand All @@ -53,7 +53,7 @@ REM
REM Backup existing tools
REM
ECHO Backing up existing tools...
IF NOT EXIST %TOOLS_DST%\NUL GOTO SKPBAK2
IF NOT EXIST %TOOLS_DST%\*.* GOTO SKPBAK2
DELTREE /Y %TOOLS_DST%.BAK >NUL
MOVE %TOOLS_DST% %TOOLS_DST%.BAK >NUL
:SKPBAK2
Expand All @@ -64,4 +64,4 @@ REM
ECHO Installing new tools...
XCOPY /S /Y TOOLS %TOOLS_DST%\ >NUL

:END
:EXIT

0 comments on commit 801ebca

Please sign in to comment.