mirror of
https://git.minetest.land/dn42/registry
synced 2025-10-09 17:03:42 +02:00

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
12 lines
337 B
Bash
Executable file
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
|