Revert xmllint requirement

This commit is contained in:
Price Hiller 2021-12-31 23:56:47 -06:00
parent c1ac374ba5
commit c70e976e88

View File

@ -268,6 +268,7 @@ start_server() {
mv "temp-serverconfig.xml" "${server_config}"
# xmllint, helps avoiding the random server launch failures for apparently no reason
if which xmllint >/dev/null 2>&1; then
for xml_file in "${server_directory}"/*.xml; do
log "info" "Linting $(important "${xml_file}")..."
if ! xmllint "${xml_file}" > /dev/null; then
@ -275,6 +276,9 @@ start_server() {
return 1
fi
done
else
log "warning" "$(important "xmllint") not installed or not in PATH, skipping lint check"
fi
log "info" "Starting $(important "${server_name}") located at $(important "${server_directory}") on game port $(important "${server_port}") and telnet port $(important "${telnet_port}")"