Escaped '?' characters and corrected double quotes on Windows.
The sh script was not modified, as it always required quotes anyway.develop
parent
75f641ccbe
commit
07d431f184
11
groovyw.bat
11
groovyw.bat
|
@ -61,10 +61,15 @@ if "x%~1" == "x" goto execute
|
|||
@REM set CMD_LINE_ARGS=%*
|
||||
:process_args
|
||||
IF "%1"=="" GOTO end
|
||||
echo "%1" | findstr /C:"\*" 1>nul && (
|
||||
SET CMD_LINE_ARGS=%CMD_LINE_ARGS% "%1"
|
||||
SET ARG=%~1
|
||||
echo "%ARG%" | findstr /C:"\*" 1>nul && (
|
||||
SET CMD_LINE_ARGS=%CMD_LINE_ARGS% "%ARG%"
|
||||
) || (
|
||||
SET CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
||||
echo "%ARG%" | findstr /C:"\?" 1>nul && (
|
||||
SET CMD_LINE_ARGS=%CMD_LINE_ARGS% "%ARG%"
|
||||
) || (
|
||||
SET CMD_LINE_ARGS=%CMD_LINE_ARGS% %ARG%
|
||||
)
|
||||
)
|
||||
SHIFT
|
||||
GOTO process_args
|
||||
|
|
Loading…
Reference in New Issue