debian-mirror-gitlab/scripts/lint-json.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
142 B
Bash
Raw Normal View History

2022-11-25 23:54:43 +05:30
#!/usr/bin/env bash
set -euo pipefail
for file in "$@"
do
yarn run -s jsonlint -p "$file" | perl -pe 'chomp if eof' | diff "$file" -
done