Initial commit
This commit is contained in:
commit
fa9f56a5ed
7 changed files with 102 additions and 0 deletions
13
pre-commit
Executable file
13
pre-commit
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Check if the directory is the root directory
|
||||
if [ ! -d ".git/" ]; then
|
||||
echo "Please commit from within the root directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run every file inside the pre-commit.d directory
|
||||
for file in .git/hooks/pre-commit.d/*
|
||||
do
|
||||
. $file
|
||||
done
|
||||
Reference in a new issue