diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-06-07 15:25:57 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-06-07 15:25:57 +0200 |
commit | 1697c66240bc9d7b85e50f500ac6704f8e69bf33 (patch) | |
tree | 2090e55a37d3e100efeb743d21aa2b0fa2ae061a /20_Options.zsh | |
parent | 89006fdc2f5ee936a4f6f025ac050dd20523c093 (diff) |
[Debug] better debug managment
Diffstat (limited to '20_Options.zsh')
-rw-r--r-- | 20_Options.zsh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/20_Options.zsh b/20_Options.zsh index cb25a94..e5c8b40 100644 --- a/20_Options.zsh +++ b/20_Options.zsh @@ -40,16 +40,16 @@ function SetOPTifExists() { # option exists, set it. case "$2" in on) - [ "$DEBUG" = "yes" ] && echo "setopt $option" >&2 + __debug "setopt $option" setopt $option ;; off) - [ "$DEBUG" = "yes" ] && echo "unsetopt $option" >&2 + __debug "unsetopt $option" unsetopt $option ;; esac else - [ "$DEBUG" = "yes" ] && echo "$option not supported by this version of zsh !" >&2 + __debug "$option not supported by this version of zsh !" fi } |