run shellcheck on helper scripts

fmt-my-stuff: #3595
squash-my-commits: __future__

fix shellcheck warnings on fmt-my-stuff and squash-my-commits
This commit is contained in:
lare 2024-03-19 10:03:16 +01:00
parent 1f76bc5adb
commit 87b641814f
No known key found for this signature in database
GPG key ID: 30C10A93B8B8E9FE
5 changed files with 17 additions and 18 deletions

View file

@ -11,8 +11,8 @@ BASE="$(readlink -f "$0" 2>/dev/null || python -c 'import os,sys;print(os.path.r
BASE="$(dirname "$BASE")"
cd "$BASE" || exit 1
git diff --name-only $1 | while IFS='/' read -ra LINE; do
git diff --name-only "$1" | while IFS='/' read -ra LINE; do
if [[ "${LINE[0]}" = "data" && -n "${LINE[2]}" ]]; then
utils/schema-check/dn42-schema.py -v policy ${LINE[1]} ${LINE[2]} $2
utils/schema-check/dn42-schema.py -v policy "${LINE[1]}" "${LINE[2]}" "$2"
fi
done