Skip to content

Commit

Permalink
Fix clean.cmd to work if no parameters are passed (dotnet#14969)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmitche committed Nov 10, 2017
1 parent 8231383 commit f1939c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clean.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f1939c9

Please sign in to comment.