File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ if ! [ -d "$ZSCANNER_JAR_DIR" ]; then
9
9
mkdir -p " $ZSCANNER_JAR_DIR "
10
10
fi
11
11
12
+ if [ -z " $ZSCANNER_JAR_UPDATE_ENABLED " ]; then
13
+ ZSCANNER_JAR_UPDATE_ENABLED=true
14
+ fi
15
+
12
16
MAX_SLEEP=60
13
17
NEXT_SLEEP=1
14
18
@@ -66,7 +70,7 @@ while NEXT_SLEEP=$(( $NEXT_SLEEP > $MAX_SLEEP ? $MAX_SLEEP : $NEXT_SLEEP ));
66
70
CURRENT_VERSION_CHECKSUM=" $( sha256sum " $ZSCANNER_JAR_DIR /zscanner.jar" | cut -c 1-64) "
67
71
68
72
EXITCODE=0
69
- java " -Dzscanner.update.enabled=true " " -Dzscanner.update.jar-url=$ZSCANNER_JAR_URL " " -Dzscanner.update.jar-sha256=$CURRENT_VERSION_CHECKSUM " $JAVA_EXTRA_ARGS -jar " $ZSCANNER_JAR_DIR /zscanner.jar" " $@ " || EXITCODE=$?
73
+ java " -Dzscanner.update.enabled=$ZSCANNER_JAR_UPDATE_ENABLED " " -Dzscanner.update.jar-url=$ZSCANNER_JAR_URL " " -Dzscanner.update.jar-sha256=$CURRENT_VERSION_CHECKSUM " $JAVA_EXTRA_ARGS -jar " $ZSCANNER_JAR_DIR /zscanner.jar" " $@ " || EXITCODE=$?
70
74
71
75
case " $EXITCODE " in
72
76
210) continue # update detected
You can’t perform that action at this time.
0 commit comments