diff --git a/files/bin/xml.sh b/files/bin/xml.sh index d625ddb..796ebb6 100755 --- a/files/bin/xml.sh +++ b/files/bin/xml.sh @@ -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