Handle bash logic correctly.

This commit is contained in:
Daniel Ceregatti 2023-09-08 11:51:01 -07:00
parent 287425cf9d
commit 974550da94

View file

@ -34,10 +34,10 @@ do
fi
if [ -f ${OUT} ]
then
xmllint --noout ${OUT} 2> /dev/null || {
echo -e "${red}${var,,}.xml does not pass XML lint test!${default}"
} && {
echo -e "${green}${var,,}.xml passes XML lint test!${default}"
}
xmllint --noout ${OUT} 2> /dev/null && (
echo -e "${green}${OUT}.xml passes XML lint test!${default}"
) || (
echo -e "${yellow}${OUT}.xml does not pass XML lint test!${default}"
)
fi
done