summaryrefslogtreecommitdiff
path: root/vcbuild.bat
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-03-12 05:09:14 +0200
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-03-14 14:06:04 +0200
commitfa8594779aa985c754a3defbad030e938c089ddf (patch)
treef7c1a18d60d34dc441b2fd5710d337ac1fbf0d68 /vcbuild.bat
parent0a56a1b9519d70a924e838e7cce3d217d8dcebe0 (diff)
downloadandroid-node-v8-fa8594779aa985c754a3defbad030e938c089ddf.tar.gz
android-node-v8-fa8594779aa985c754a3defbad030e938c089ddf.tar.bz2
android-node-v8-fa8594779aa985c754a3defbad030e938c089ddf.zip
build: do not cd on vcbuild help
`vcbuild help` just outputs help info and exits. If a user calls this command not from a project root, the directory change can be unexpected and unwanted. PR-URL: https://github.com/nodejs/node/pull/19291 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index b3ec5aee96..0129319034 100644
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -1,7 +1,5 @@
@if not defined DEBUG_HELPER @ECHO OFF
-cd %~dp0
-
if /i "%1"=="help" goto help
if /i "%1"=="--help" goto help
if /i "%1"=="-help" goto help
@@ -11,6 +9,8 @@ if /i "%1"=="-?" goto help
if /i "%1"=="--?" goto help
if /i "%1"=="/?" goto help
+cd %~dp0
+
@rem Process arguments.
set config=Release
set target=Build