diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script b/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script index efea63e679..da593c06c1 100755 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script @@ -37,7 +37,7 @@ while [[ -L "$jarfile" ]]; do cd "$(dirname "$jarfile")" || exit 1 jarfile=$(pwd)/$(basename "$jarfile") done -jarfolder="$(dirname "$jarfile")" +jarfolder="$( (cd $(dirname "$jarfile") && pwd -P) )" cd "$WORKING_DIR" || exit 1 # Source any config file