add validation tools

This commit is contained in:
keita
2021-02-16 15:10:56 +09:00
parent 6fa7c457c0
commit f99ffa71b8
5 changed files with 67 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
exit 1
fi
if [ "$(pwd)" != "$(git rev-parse --show-toplevel)" ]; then
exit 1
fi