From 1cf613347ef354eb75665c4e42b9ef2fdcceb84b Mon Sep 17 00:00:00 2001 From: Zearin Date: Mon, 28 Apr 2014 14:51:13 -0400 Subject: Use consistent braces for functions --- git-hooks | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/git-hooks b/git-hooks index aa55f72..8ee996a 100755 --- a/git-hooks +++ b/git-hooks @@ -162,7 +162,8 @@ git-hooks run "$0" "$@"'; fi } -function installglobal { +function installglobal +{ TEMPLATE="$HOME/.git-template-with-git-hooks" if [ ! -d "${TEMPLATE}" ] ; then DEFAULT=/usr/share/git-core/templates @@ -180,13 +181,16 @@ echo \"git hooks not installed in this repository. Run 'git hooks --install' to echo "Git global config init.templatedir is now set to ${TEMPLATE}" } -function uninstallglobal { +function uninstallglobal +{ git config --global --unset init.templatedir } -function report_error { +function report_error +{ echo "Hook failed: $last_run_hook" exit 1 + } case $1 in -- cgit v1.2.3