From f1939c90aed599c107b44ef26b5db5b417860ed4 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Thu, 9 Nov 2017 16:02:30 -0800 Subject: Fix clean.cmd to work if no parameters are passed (#14969) --- clean.cmd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clean.cmd b/clean.cmd index 0805543f8d..17f9e402c6 100644 --- a/clean.cmd +++ b/clean.cmd @@ -2,9 +2,11 @@ setlocal EnableDelayedExpansion set NO_DASHES_ARG=%1 +if not defined NO_DASHES_ARG goto no_help if /I [%NO_DASHES_ARG:-=%] == [?] goto Usage if /I [%NO_DASHES_ARG:-=%] == [h] goto Usage +:no_help :: Check if VBCSCompiler.exe is running tasklist /fi "imagename eq VBCSCompiler.exe" |find ":" > nul :: Compiler is running if errorlevel == 1 -- cgit v1.2.3