Polish "Support multiple drives when running CLI using Cygwin"

See gh-17872
pull/18122/head
Andy Wilkinson 5 years ago
parent 584a562970
commit 308f2db930

@ -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

Loading…
Cancel
Save