summaryrefslogtreecommitdiff
path: root/20_Options.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-06-07 15:25:57 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-06-07 15:25:57 +0200
commit1697c66240bc9d7b85e50f500ac6704f8e69bf33 (patch)
tree2090e55a37d3e100efeb743d21aa2b0fa2ae061a /20_Options.zsh
parent89006fdc2f5ee936a4f6f025ac050dd20523c093 (diff)
[Debug] better debug managment
Diffstat (limited to '20_Options.zsh')
-rw-r--r--20_Options.zsh6
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
}