Skip to content
Snippets Groups Projects
Commit 1e962f56 authored by Erick Hitter's avatar Erick Hitter
Browse files

Formatting

parent 715db0af
No related branches found
No related tags found
1 merge request!23Test linting for configurations
...@@ -8,24 +8,23 @@ jq --null-input --arg yaml "$1" '.content=$yaml' \ ...@@ -8,24 +8,23 @@ jq --null-input --arg yaml "$1" '.content=$yaml' \
--data @- \ --data @- \
-o result.json -o result.json
echo "" echo "**********************************************************"
echo ""
echo "MERGED YAML:" echo "MERGED YAML:"
jq --raw-output '.merged_yaml' < result.json jq --raw-output '.merged_yaml' < result.json
echo "" echo "**********************************************************"
echo "ERRORS:" echo "ERRORS:"
jq '.errors' < result.json jq '.errors' < result.json
echo "" echo "**********************************************************"
echo "WARNINGS:" echo "WARNINGS:"
jq '.warnings' < result.json jq '.warnings' < result.json
echo "" echo "**********************************************************"
echo "IS VALID:" echo "IS VALID:"
jq '.valid' < result.json jq '.valid' < result.json
if [ "true" == "$(jq '.valid' < result.json)" ]; then if [[ "$(jq '.valid' < result.json)" == "true" ]]; then
exit 0 exit 0
else else
exit 1 exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment