mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-07-10 10:35:10 +00:00
mc: added debug-ability to vanilla server downloading
This commit is contained in:
@@ -25,4 +25,18 @@ function isTrue {
|
||||
esac
|
||||
|
||||
return ${result}
|
||||
}
|
||||
|
||||
function isDebugging {
|
||||
if [ ${DEBUG^^} = TRUE ]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
function debug {
|
||||
if isDebugging; then
|
||||
echo "DEBUG: $*"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user