From cd7f773d58906a575e047b97c6d9aba7020e122c Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Mon, 4 Apr 2016 00:42:08 +0000 Subject: [PATCH] fix debug --- urchin | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/urchin b/urchin index 291f7ef..434cdb0 100755 --- a/urchin +++ b/urchin @@ -186,8 +186,10 @@ recurse() { fi if test -f setup_dir; then - echo Sourcing "${PWD}/setup_dir" - . ./setup_dir + if $print_debug; then + echo Sourcing "${PWD}/setup_dir" + . ./setup_dir + fi fi for test in *; do @@ -264,8 +266,10 @@ recurse() { finish=$(date +%s) if test -f teardown; then - echo Sourcing "${PWD}/teardown" - . ./teardown + if $print_debug; then + echo Sourcing "${PWD}/teardown" + . ./teardown + fi fi if [ "${exit_code}" -eq 0 ]; then