Skip to content

Commit

Permalink
Redirect stderr to stdout
Browse files Browse the repository at this point in the history
This makes it more overt for the normal user when postprocessing
the output, e.g. using "grep", because now you get what you see.
  • Loading branch information
dr0i committed Dec 14, 2020
1 parent b446f78 commit 46ed089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/resources/validateJsonTestFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ DIRECTORY_OF_JSON_TO_VALIDATE="alma/"

for version in "draft"; do
echo "Testing version: $version"
ajv test -s schemas/resource.json -r "schemas/*.json" -d "${DIRECTORY_OF_JSON_TO_VALIDATE}/*.json" --valid
ajv test -s schemas/resource.json -r "schemas/*.json" -d "${DIRECTORY_OF_JSON_TO_VALIDATE}/*.json" --invalid 2>&1
done

if [ $? -eq 0 ]
Expand Down

0 comments on commit 46ed089

Please sign in to comment.