mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-07 14:51:17 +00:00
Handle bash logic correctly.
This commit is contained in:
parent
287425cf9d
commit
974550da94
1 changed files with 5 additions and 5 deletions
|
@ -34,10 +34,10 @@ do
|
||||||
fi
|
fi
|
||||||
if [ -f ${OUT} ]
|
if [ -f ${OUT} ]
|
||||||
then
|
then
|
||||||
xmllint --noout ${OUT} 2> /dev/null || {
|
xmllint --noout ${OUT} 2> /dev/null && (
|
||||||
echo -e "${red}${var,,}.xml does not pass XML lint test!${default}"
|
echo -e "${green}${OUT}.xml passes XML lint test!${default}"
|
||||||
} && {
|
) || (
|
||||||
echo -e "${green}${var,,}.xml passes XML lint test!${default}"
|
echo -e "${yellow}${OUT}.xml does not pass XML lint test!${default}"
|
||||||
}
|
)
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue