diff --git a/.ci-scripts/lint.sh b/.ci-scripts/lint.sh index ba7666fa5c0990486107bd6985acc0b3077a98c7..fa2a2afca431fc686ae92ad987b8bf9d82cf85fc 100644 --- a/.ci-scripts/lint.sh +++ b/.ci-scripts/lint.sh @@ -8,24 +8,23 @@ jq --null-input --arg yaml "$1" '.content=$yaml' \ --data @- \ -o result.json -echo "" -echo "" +echo "**********************************************************" echo "MERGED YAML:" jq --raw-output '.merged_yaml' < result.json -echo "" +echo "**********************************************************" echo "ERRORS:" jq '.errors' < result.json -echo "" +echo "**********************************************************" echo "WARNINGS:" jq '.warnings' < result.json -echo "" +echo "**********************************************************" echo "IS VALID:" jq '.valid' < result.json -if [ "true" == "$(jq '.valid' < result.json)" ]; then +if [[ "$(jq '.valid' < result.json)" == "true" ]]; then exit 0 else exit 1