From afcf059898cdd7b44c60c94d4165cebc3e72fbd2 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Mon, 12 Mar 2018 05:09:14 +0200 Subject: [PATCH] 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(-) diff --git a/vcbuild.bat b/vcbuild.bat index 51509b9cf4bfb5..43962324857bed 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -1,7 +1,5 @@ @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