From 0ce1db97d05259efe40f69665486a0c2f031d903 Mon Sep 17 00:00:00 2001 From: xiazeyu_2011 Date: Fri, 18 May 2018 21:02:36 +0800 Subject: [PATCH] fix: bug when no argument is passed in --- README.md | 2 +- bin/have.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f3920fe..2751efe 100644 --- a/README.md +++ b/README.md @@ -294,7 +294,7 @@ And here's the related fragment of my `user-profile.cmd`: ```batch -call have NOT "/noautorun" "cmd /c "start %cmder_root%\bin\vsCode\Code.exe --user-data-dir %vsCodeUserData% --extensions-dir %vsCodeExtensionsDir% %* %vsCodeUserData%\code.code-workspace" +call have NOT "/noautorun" "cmd /c start %cmder_root%\bin\vsCode\Code.exe --user-data-dir %vsCodeUserData% --extensions-dir %vsCodeExtensionsDir% %* %vsCodeUserData%\code.code-workspace" ``` diff --git a/bin/have.bat b/bin/have.bat index 8007877..0e5ad21 100644 --- a/bin/have.bat +++ b/bin/have.bat @@ -4,7 +4,7 @@ setlocal if "%~1" equ "" goto :wrongSyntax if not defined CMDER_USER_FLAGS ( - exit /b + set "CMDER_USER_FLAGS= " ) set "haveBatNOT=false"