Summary Files Commits Branches @commit @diff @stats
path: root / .hooks / pre-commit.sh
diff options
context:
space:
mode:
Commit2e996cca84978995f83611e5f0f81c5f45f60ab7 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-07-04 16:47:40 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-07-04 16:47:40 +0300
Filesbc82fd4608cc86f5dca8c263f7cf72f1f8869977 /.hooks/pre-commit.sh
syndamia.com-2e996cca84978995f83611e5f0f81c5f45f60ab7.tar
syndamia.com-2e996cca84978995f83611e5f0f81c5f45f60ab7.tar.gz
syndamia.com-2e996cca84978995f83611e5f0f81c5f45f60ab7.zip
Parent1fe3d39788cfb0a167ff562fa121c90ea3b445c7 (diff)
Added a new content section - reposts
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