mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-03-11 09:11:25 +00:00
paper: download default configs before patching (#3004)
This commit is contained in:
@@ -265,10 +265,17 @@ function compare_version() {
|
||||
}
|
||||
|
||||
function versionLessThan() {
|
||||
local oldState
|
||||
# The return status when listing options is zero if all optnames are enabled, non- zero otherwise.
|
||||
oldState=$(shopt -po xtrace || true)
|
||||
shopt -u -o xtrace
|
||||
|
||||
# Use if-else since strict mode might be enabled
|
||||
if compare_version "${VERSION}" "lt" "${1?}"; then
|
||||
eval "$oldState"
|
||||
return 0
|
||||
else
|
||||
eval "$oldState"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user