forked from HackSwjtu/HackSwjtu.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhook.sh
More file actions
20 lines (15 loc) · 642 Bytes
/
hook.sh
File metadata and controls
20 lines (15 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
cd .git/hooks
if [ $? -ne 0 ]; then
echo 'I need git proj!(╯‵□′)╯︵┻━┻'
exit 1
fi
wget https://gist.githubusercontent.com/Desgard/f2c34e4586eb92d50a6a10d0cac7dc0a/raw/61e51756b5fdc8ddae617d01d684ff3f2a4cc331/commit-msg.py -O post-commit >/dev/null 2>&1
sudo chmod 755 post-commit
echo ' _/ _/'
echo ' _/_/_/ _/_/_/ _/_/_/ _/ _/'
echo ' _/ _/ _/ _/ _/ _/_/'
echo ' _/ _/ _/ _/ _/ _/ _/'
echo ' _/ _/ _/_/_/ _/_/_/ _/ _/'
echo ''
echo -e '\033[44;37;5m The deployment for githook is completed ! \033[0m 😎 '