Skip to content

Commit 05257bc

Browse files
MartyNeallhotari
authored andcommitted
Separate options from arguments when calling cygpath
Calling `grails run --stacktrace` throws an error when startGrails is attempting to convert the arguments to a windows format. By using a `--`, we separate the options to cygpath from the arguments cygpath tries to convert.
1 parent 017877f commit 05257bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-resources/src/grails/home/bash/startGrails

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ if $cygwin; then
297297
for arg in "$@" ; do
298298
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
299299
if [ $CHECK -ne 0 ] ; then
300-
convArg=`cygpath --path --ignore --mixed "$arg"`
300+
convArg=`cygpath --path --ignore --mixed -- "$arg"`
301301
else
302302
convArg=$arg
303303
fi

0 commit comments

Comments
 (0)