Skip to content

Commit 0d0e00d

Browse files
author
Chris Maunder
committed
Corrected install script to test for .env
1 parent 5d463a8 commit 0d0e00d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/setup.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,9 @@ set installScriptsDirPath=!rootDirPath!\devops\install
268268
set utilsScript=!utilsScriptsDirPath!\utils.bat
269269

270270
:: Load vars in .env. This may update things like dotNetTarget
271-
for /f "tokens=1,2 delims==" %%a in (!rootDirPath!\.env) do set %%a=%%b
272-
271+
if exist "!rootDirPath!\.env" (
272+
for /f "tokens=1,2 delims==" %%a in ("!rootDirPath!\.env") do set %%a=%%b
273+
)
273274
:: Helper vars for OS, Platform (see note below), and system name. systemName is
274275
:: a no-op here because nothing exciting happens on Windows. In the corresponding
275276
:: .sh setup files, systemName can be docker, Raspberry Pi, WSL - all sorts of fun

0 commit comments

Comments
 (0)