From f1ca290634a6b0684d5e31c11fb3df51bf329d07 Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 19 Jun 2019 12:07:06 +0300 Subject: Handle multiple tokens For example: -env Variable Value -pa Dir1 Dir2 ... --- priv/templates/extended_bin_windows | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'priv/templates') diff --git a/priv/templates/extended_bin_windows b/priv/templates/extended_bin_windows index 394b352..5d59ccd 100644 --- a/priv/templates/extended_bin_windows +++ b/priv/templates/extended_bin_windows @@ -100,7 +100,7 @@ :: Collect any additional VM args into erl_opts @setlocal EnableDelayedExpansion -@for /f "usebackq tokens=1-2" %%I in (`findstr /r "^[^#]" "%vm_args%"`) do @( +@for /f "usebackq tokens=1,*" %%I in (`findstr /r "^[^#]" "%vm_args%"`) do @( if not "%%I" == "-name" ( if not "%%I" == "-sname" ( if not "%%I" == "-setcookie" ( -- cgit v1.2.3