From fa8594779aa985c754a3defbad030e938c089ddf Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Mon, 12 Mar 2018 05:09:14 +0200 Subject: 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 Reviewed-By: Daniel Bevenius Reviewed-By: James M Snell --- vcbuild.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcbuild.bat') 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 -- cgit v1.2.3