Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed for GRAILS-9778 - Cygwin shows empty path

  • Loading branch information...
commit df8367e17ed45c7a96620e9bb5a0e905dd12669c 1 parent 302964c
@chanwit authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 grails-resources/src/grails/home/bash/startGrails
View
4 grails-resources/src/grails/home/bash/startGrails
@@ -263,7 +263,9 @@ if $cygwin; then
GRAILS_HOME=`cygpath --path --mixed "$GRAILS_HOME"`
JAVA_HOME=`cygpath --path --mixed "$JAVA_HOME"`
STARTER_CONF=`cygpath --path --mixed "$STARTER_CONF"`
- CP=`cygpath --path --mixed "$CP"`
+ if [ "x$CP" != "x" ] ; then
@bond-
bond- added a note

You should have used:
if [ ! -z $CP ] ; then or if [ -n $CP ]; then or if [ $CP ]; then

http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ CP=`cygpath --path --mixed "$CP"`
+ fi
TOOLS_JAR=`cygpath --path --mixed "$TOOLS_JAR"`
STARTER_CLASSPATH=`cygpath --path --mixed "$STARTER_CLASSPATH"`
# We build the pattern for arguments to be converted via cygpath

2 comments on commit df8367e

@chanwit
Owner

Thank you, Ravi. I am not good at scripting bash. So I've just used similar codes from startGrails script.

@bond-

Please change your commit to accommodate that change :+1:

Please sign in to comment.
Something went wrong with that request. Please try again.