Skip to content

Commit

Permalink
DEBUG_LOCAL_HOOKS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adam committed Sep 3, 2008
1 parent 145e1e2 commit cc3879d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .shared_env
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ esac

#[ "$shell" = -zsh ] && unsetopt function_argzero

# Default to 1, and treat empty as 0. This ensures we have an integer.
: ${DEBUG_LOCAL_HOOKS=1}
: ${DEBUG_LOCAL_HOOKS:=0}

sh_load_status () {
# Find the name of the running shell
_this_shell=${shell:-${0##*/}}
Expand All @@ -51,7 +55,7 @@ sh_load_status () {

# Leave status printed?

if [ "${DEBUG_LOCAL_HOOKS:-0}" -ge 2 ]; then
if [ "$DEBUG_LOCAL_HOOKS" -ge 2 ]; then
debug="\n"
fi

Expand Down

0 comments on commit cc3879d

Please sign in to comment.