The validator just prints errors, but always exited with nonzero. Signed-off-by: Edwin Török <edwin@etorok.net>
11 lines
241 B
Bash
11 lines
241 B
Bash
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
(for i in "$@"; do
|
|
dotnet run --configuration=Release --no-build --no-restore --project OOXML-Validator/OOXMLValidatorCLI -- "${i}" -r
|
|
done) >validation
|
|
json_reformat -s <validation
|
|
|
|
[ $(cat validation | wc -c) = 2 ]
|