diff --git a/spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring b/spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring index ec1b88d163..023a4c2b94 100755 --- a/spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring +++ b/spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring @@ -99,13 +99,13 @@ if [ ! -d "${SPRING_HOME}" ]; then exit 2 fi -[[ $cygwin ]] && SPRINGPATH=$(cygpath "${SPRING_HOME}") || SPRINGPATH=$SPRING_HOME +[[ "${cygwin}" == "true" ]] && SPRINGPATH=$(cygpath "${SPRING_HOME}") || SPRINGPATH=$SPRING_HOME CLASSPATH=.:${SPRINGPATH}/bin if [ -d "${SPRINGPATH}/ext" ]; then CLASSPATH=$CLASSPATH:${SPRINGPATH}/ext fi for f in "${SPRINGPATH}"/lib/*; do - [[ $cygwin ]] && LIBFILE=$(cygpath "$f") || LIBFILE=$f + [[ "${cygwin}" == "true" ]] && LIBFILE=$(cygpath "$f") || LIBFILE=$f CLASSPATH=$CLASSPATH:$LIBFILE done