Don't leak env variables from batch files

This commit is contained in:
Alex Dima 2016-02-18 16:50:33 +01:00
parent 1050fef157
commit 3e78859e24
2 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,6 @@
@echo off
setlocal
title VSCode Dev
pushd %~dp0\..
@ -23,9 +25,4 @@ set ELECTRON_ENABLE_STACK_DUMPING=1
.\.build\electron\electron.exe . %*
popd
:: Unset environment variables after we are done
set NODE_ENV=
set VSCODE_DEV=
set ELECTRON_DEFAULT_ERROR_MODE=
set ELECTRON_ENABLE_LOGGING=
set ELECTRON_ENABLE_STACK_DUMPING=
endlocal

View file

@ -1,7 +1,10 @@
@echo off
setlocal
set ATOM_SHELL_INTERNAL_RUN_AS_NODE=1
pushd %~dp0\..
.\.build\electron\electron.exe .\node_modules\mocha\bin\_mocha %*
popd
endlocal