mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Fix problem locating spring home
This commit is contained in:
parent
45206d6050
commit
55ed0bdf45
@ -47,7 +47,8 @@ if [ ! -f "${JAVA_HOME}/bin/java" ]; then
|
||||
fi
|
||||
|
||||
if [ "$SPRING_HOME" == "" ]; then
|
||||
SPRING_HOME=`cd "$(dirname $0)"/.. && pwd`
|
||||
script=`readlink $0`
|
||||
SPRING_HOME=`cd "$(dirname $script)"/.. && pwd`
|
||||
else
|
||||
if [ ! -d "${SPRING_HOME}" ]; then
|
||||
echo "Not a directory: SPRING_HOME=${SPRING_HOME}"
|
||||
|
Loading…
Reference in New Issue
Block a user