mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-28 16:40:31 +00:00
Accept yes/no for boolean environment variables (#2893)
This commit is contained in:
+3
-3
@@ -64,7 +64,7 @@ function getFilenameFromUrl() {
|
|||||||
|
|
||||||
function isTrue() {
|
function isTrue() {
|
||||||
case "${1,,}" in
|
case "${1,,}" in
|
||||||
true | on | 1)
|
true | yes | on | 1)
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -75,7 +75,7 @@ function isTrue() {
|
|||||||
|
|
||||||
function isFalse() {
|
function isFalse() {
|
||||||
case "${1,,}" in
|
case "${1,,}" in
|
||||||
false | off | 0)
|
false | no | off | 0)
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -345,4 +345,4 @@ function ensureRemoveAllModsOff() {
|
|||||||
log "WARNING using REMOVE_OLDS_MODS interferes with $reason -- it is now disabled"
|
log "WARNING using REMOVE_OLDS_MODS interferes with $reason -- it is now disabled"
|
||||||
REMOVE_OLD_MODS=false
|
REMOVE_OLD_MODS=false
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user