Initial commit

This commit is contained in:
Sonny 2019-05-19 14:18:51 +00:00
commit fa9f56a5ed
7 changed files with 102 additions and 0 deletions

13
post-commit Executable file
View 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 post-commit.d directory
for file in .git/hooks/post-commit.d/*
do
. $file
done