Removed bash expansion, receiving entity errors
This commit is contained in:
parent
656643cad4
commit
bbfe8027c4
@ -268,8 +268,10 @@ start_server() {
|
|||||||
mv "temp-serverconfig.xml" "${server_config}"
|
mv "temp-serverconfig.xml" "${server_config}"
|
||||||
|
|
||||||
# xmllint, helps avoiding the random server launch failures for apparently no reason
|
# xmllint, helps avoiding the random server launch failures for apparently no reason
|
||||||
|
local lint_dirs
|
||||||
|
lint_dirs=("${server_directory}"/*.xml, "${server_directory}/Saves/"*.xml)
|
||||||
if which xmllint >/dev/null 2>&1; then
|
if which xmllint >/dev/null 2>&1; then
|
||||||
for xml_file in "${server_directory}"/{*,"Saves/"*}.xml; do
|
for xml_file in "${lint_dirs[@]}"; do
|
||||||
log "info" "Linting $(important "${xml_file}")"
|
log "info" "Linting $(important "${xml_file}")"
|
||||||
if ! xmllint "${xml_file}" >/dev/null; then
|
if ! xmllint "${xml_file}" >/dev/null; then
|
||||||
log "error" "Xml parsing error in $(important "${xml_file}"), resolve the error and attempt to start again"
|
log "error" "Xml parsing error in $(important "${xml_file}"), resolve the error and attempt to start again"
|
||||||
|
Loading…
Reference in New Issue
Block a user