Summary Files Commits Branches @commit @diff @stats
path: root / .hooks / pre-commit.sh
diff options
context:
space:
mode:
1 files changed, 3 insertions, 1 deletions
-rwxr-xr-x.hooks/pre-commit.sh4
diff --git a/.hooks/pre-commit.sh b/.hooks/pre-commit.sh
index 5ddef4a..ee2143e 100755
--- a/.hooks/pre-commit.sh
+++ b/.hooks/pre-commit.sh
@@ -3,7 +3,7 @@
# When copying/symlinking to .git/hooks/ remember to remove the filename extension!
root='./src/'
-names=('about' 'archives' 'blog' 'docs' 'tutorials')
+names=('about' 'archives' 'blog' 'docs' 'tutorials' 'reposts')
changes=0
for name in ${names[@]}; do
@@ -20,4 +20,6 @@ if [ "$changes" -eq '1' ]; then
echo '#========================================================================#'
echo '# Index files have been fixed! Consider adding them into the commit too! #'
echo '#========================================================================#'
+else
+ echo 'Nothing was done!'
fi