diff options
author | Zearin <zearin@gonk.net> | 2014-04-28 14:51:13 -0400 |
---|---|---|
committer | Zearin <zearin@gonk.net> | 2014-04-28 14:51:13 -0400 |
commit | 1cf613347ef354eb75665c4e42b9ef2fdcceb84b (patch) | |
tree | 2a446407ed3b2b56d6a0763a674a7de00c67bbf1 | |
parent | 33f47cd3134f21731f19e1260ed8c5ef36ee04d2 (diff) | |
download | git-hooks-1cf613347ef354eb75665c4e42b9ef2fdcceb84b.tar.gz git-hooks-1cf613347ef354eb75665c4e42b9ef2fdcceb84b.tar.bz2 |
Use consistent braces for functions
-rwxr-xr-x | git-hooks | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |