mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 22:02:28 +00:00
28 lines
327 B
Text
28 lines
327 B
Text
|
#!/bin/bash
|
||
|
|
||
|
function isURL {
|
||
|
local value=$1
|
||
|
|
||
|
if [[ ${value:0:8} == "https://" || ${value:0:7} = "http://" ]]; then
|
||
|
return 0
|
||
|
else
|
||
|
return 1
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
function isTrue {
|
||
|
local value=${1,,}
|
||
|
|
||
|
result=
|
||
|
|
||
|
case ${value} in
|
||
|
true|on)
|
||
|
result=0
|
||
|
;;
|
||
|
*)
|
||
|
result=1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
return ${result}
|
||
|
}
|