Skip to content

Commit 673dab0

Browse files
committed
add break
1 parent 5c93680 commit 673dab0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gradlew

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ for attempt in 1 2 3; do
228228
# If the local checksum does not match the required checksum, delete the JAR to force re-download.
229229
if [ "$LOCAL_WRAPPER_JAR_CHECKSUM" != "$REQUIRED_WRAPPER_JAR_CHECKSUM" ] ; then
230230
rm -f "$APP_HOME/gradle/wrapper/gradle-wrapper.jar"
231+
else
232+
break
231233
fi
232234
fi
233235
done

wrapper.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ task bootstrapWrapper() {
7474
# If the local checksum does not match the required checksum, delete the JAR to force re-download.
7575
if [ "\$LOCAL_WRAPPER_JAR_CHECKSUM" != "\$REQUIRED_WRAPPER_JAR_CHECKSUM" ] ; then
7676
rm -f "$wrapperJarPath"
77+
else
78+
break
7779
fi
7880
fi
7981
done

0 commit comments

Comments
 (0)