tMerge branch 'fix_debug' - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 35e1afdcebfbf8d1eaf7edb59187a4039d45eec4
DIR parent 0d2038836a82e19c990ebdafdc7c17b6d141086b
HTML Author: Jaromil <jaromil@dyne.org>
Date: Tue, 17 Jan 2012 15:18:27 +0100
Merge branch 'fix_debug'
Diffstat:
M src/tomb | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
DIR diff --git a/src/tomb b/src/tomb
t@@ -88,29 +88,29 @@ function _message say()
{
local notice="message"
[[ "$1" = "-n" ]] && shift && notice="inline"
- (( $QUIET )) || _msg "$notice" "$1"
+ option_is_set -q || _msg "$notice" "$1"
return 0
}
alias act="_message -n"
function _verbose xxx()
{
- (( $DEBUG )) && _msg verbose "$1"
+ option_is_set -D && _msg verbose "$1"
return 0
}
function _success yes()
{
- (( $QUIET )) || _msg success "$1"
+ option_is_set -q || _msg success "$1"
return 0
}
function _warning no()
{
- (( $QUIET )) || _msg warning "$1"
+ option_is_set -q || _msg warning "$1"
return 1
}
function _failure die()
{
typeset -i exitcode=${2:-1}
- (( $QUIET )) || _msg failure "$1"
+ option_is_set -q || _msg failure "$1"
exit $exitcode
}