Skip to content

Commit 9f1a18e

Browse files
authored
fixed logic to not compare the VERSION number when VERSION is set to … (#3389)
1 parent dedf8bc commit 9f1a18e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

files/auto/autopause-fcns.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,17 @@ use_proxy() {
2525
}
2626

2727
use_server_list_ping() {
28+
if [[ "${VERSION^^}" == "LATEST" || "${VERSION^^}" == "SNAPSHOT" ]]; then
29+
# Don't use server-list ping for unknown version
30+
return 1
31+
fi
32+
2833
if versionLessThan 1.7; then
2934
echo "--use-server-list-ping"
3035
fi
3136
}
3237

38+
3339
mc_server_listening() {
3440
mc-monitor status $(use_proxy) --host "${SERVER_HOST:-localhost}" --port "$SERVER_PORT" $(use_server_list_ping) --timeout 10s >&/dev/null
3541
}

0 commit comments

Comments
 (0)