add support for __cdist_debug={0,1,2}

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-07 10:07:04 +02:00
commit c3bf34bf3d
2 changed files with 11 additions and 5 deletions

View file

@ -35,11 +35,9 @@ __cdist_echo()
case "$__cdist_echo_type" in
debug)
set +u
if [ "$__cdist_debug" ]; then
if [ "$__cdist_debug" = 1 ]; then
echo $__cdist_echo_prefix "Debug: $@"
fi
set -u
;;
info)
echo $__cdist_echo_prefix "$@"