Skip to content
Snippets Groups Projects
watcher.bat 594 B
Newer Older
  • Learn to ignore specific revisions
  • Frankly George's avatar
    Frankly George committed
    @ECHO off
    :: Free Cities File system watcher - Windows
    
    :: run dependencyCheck.bat
    CALL .\devTools\scripts\dependencyCheck.bat
    SET CODE=%ERRORLEVEL%
    
    IF %CODE% EQU 69 (
    	:: if exit code is 69, then we don't have all the dependencies we need
    	ECHO.
    	ECHO Dependencies not met.
        ECHO.
    	EXIT /b 0
    ) ELSE IF %CODE% EQU 0 (
    	:: if exit code is 0, run watcher.js
    	CALL node devTools\scripts\watcher.js
    	EXIT /b 0
    ) ELSE (
    	:: if exit code is not 0, print error message
    	ECHO.
    	ECHO dependencyCheck.bat exited with code: %CODE%
    	ECHO Dependency check failed unexpectedly.
        ECHO.
        EXIT /b 0
    )