From 1697c66240bc9d7b85e50f500ac6704f8e69bf33 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 7 Jun 2012 15:25:57 +0200 Subject: [Debug] better debug managment --- 20_Options.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '20_Options.zsh') 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 } -- cgit v1.2.3