aboutsummaryrefslogtreecommitdiffstats
path: root/git-tools/hooks/uninstall
blob: 1b3b7fd2c9e73cfc099314592c3f377f5b4382fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# Script to uninstall the git hooks
#
# Usage (from within git-tools/hooks):
# ./uninstall

dir=$(dirname $0)

for file in $(ls $dir)
do
	if [ $file != "install" ] && [ $file != "uninstall" ]
	then
		rm -f "$dir/../../.git/hooks/$file"
	fi
done