feat: tools

This commit is contained in:
Strix 2023-10-22 22:06:22 +02:00
parent bdc60174ed
commit 7a850e79d9
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#!/bin/sh
for s in $(find tools/ -type f -iname "*.sh"); do
if ! [ -x $s ]; then
echo "$s is not executable"
exit 1
fi
done

View file

@ -0,0 +1,4 @@
#!/bin/sh
[ -d ".git/hooks" ] || mkdir .git/hooks
ln tools/repo/check.sh .git/hooks/pre-commit