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 ab1338910e..0d0ac169c3 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 @@ -81,12 +81,11 @@ isRunning() { } await_file() { - end=`date +%s` + end=$(date +%s) let "end+=10" - while [ ! -f $1 ] + while [[ ! -f "$1" ]] do - now=`date +%s` - echo $now + now=$(date +%s) if [[ $now -ge $end ]]; then break fi