From 0f032eeb8a3bf94170e155e286014754f2d0cd1e Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 1 Dec 2015 12:44:10 +0000 Subject: [PATCH] Address warnings reported by shellcheck for changes made in 7011944 Closes gh-4524 --- .../org/springframework/boot/loader/tools/launch.script | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 ab1338910e8..0d0ac169c37 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