Skip to content

Commit a6948f0

Browse files
committed
correct hook shell
1 parent fba64ce commit a6948f0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

hook.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
#!/bin/bash
22

33
cd .git/hooks
4+
5+
if [ $? -ne 0]; then
6+
echo 'I need git proj!(╯‵□′)╯︵┻━┻'
7+
exit 1
8+
fi
9+
410
wget https://gist.githubusercontent.com/Desgard/f2c34e4586eb92d50a6a10d0cac7dc0a/raw/61e51756b5fdc8ddae617d01d684ff3f2a4cc331/commit-msg.py -O post-commit >/dev/null 2>&1
511
sudo chmod 755 post-commit
612

13+
echo ' _/ _/'
14+
echo ' _/_/_/ _/_/_/ _/_/_/ _/ _/'
15+
echo ' _/ _/ _/ _/ _/ _/_/'
16+
echo ' _/ _/ _/ _/ _/ _/ _/'
17+
echo ' _/ _/ _/_/_/ _/_/_/ _/ _/'
18+
echo ''
19+
720
echo -e '\033[44;37;5m The deployment for githook is completed ! \033[0m 😎 '

0 commit comments

Comments
 (0)