feat: tools
This commit is contained in:
parent
bdc60174ed
commit
7a850e79d9
2 changed files with 12 additions and 0 deletions
8
tools/repo/check.d/all-tools-executable.sh
Executable file
8
tools/repo/check.d/all-tools-executable.sh
Executable 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
|
4
tools/repo/install-git-hooks.sh
Executable file
4
tools/repo/install-git-hooks.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ -d ".git/hooks" ] || mkdir .git/hooks
|
||||
ln tools/repo/check.sh .git/hooks/pre-commit
|
Loading…
Reference in a new issue