aboutsummaryrefslogtreecommitdiff
path: root/tools/validate-docx2.sh
blob: 65827452effedcc91e73dfe41f29179bde0048b9 (plain)
1
2
3
4
5
6
7
8
9
10
#!/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 ]