registry/fmt-my-stuff
g_here 3acae37b09
squashed commit:
ee60a101b remove check for a `-` before/after the maintainer name. Now only checks for a : or whitespace before, and whitespace or line ending after
ff075a741 squashed commit:

previous squashed commit:

7d0fcc341 expand checks from previous commit
f7799a45b check for a space in front of the maintainer name in fmt-my-stuff

### DN42 Signature
### method: ssh-git
### mntner: G-MNT
2024-03-19 03:08:45 -05:00

12 lines
337 B
Bash
Executable file

#!/bin/sh
if [ "$#" -eq "0" ]
then
echo "Usage: $0 YOUR-MNT"
exit
fi
BASE="$(readlink -f "$0" 2>/dev/null || python -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$0")"
BASE="$(dirname "$BASE")"
grep -lrE "(\s|:)$1(\s|\$)" "$BASE/data/" | while read line; do utils/schema-check/dn42-schema.py fmt -i "$line"; done