Merge pull request #288 from dead-horse/release-hook

made release hook more flexible.
This commit is contained in:
hemanth.hm 2014-12-03 08:03:03 +05:30
commit ec83f827b1

View file

@ -2,9 +2,18 @@
hook() {
local hook=.git/hooks/$1.sh
# compat without extname
if test ! -f $hook; then
hook=.git/hooks/$1
fi
if test -f $hook; then
echo "... $1"
. $hook
if test -x $hook; then
$hook
else
. $hook
fi
fi
}