From 974550da9423d272284d3afc333253788054b77a Mon Sep 17 00:00:00 2001 From: Daniel Ceregatti Date: Fri, 8 Sep 2023 11:51:01 -0700 Subject: [PATCH] Handle bash logic correctly. --- files/bin/xml.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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