From a900722fb74dd06fb56a0ca0a18f2b371ff737d6 Mon Sep 17 00:00:00 2001 From: David Jones Date: Wed, 26 Jun 2013 08:15:07 +0100 Subject: [PATCH] Fix bug when test is called "-n" --- urchin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/urchin b/urchin index f310aee..6b8de98 100755 --- a/urchin +++ b/urchin @@ -58,13 +58,13 @@ recurse() { then # On success, print a '✓' printf '\033[32m✓ \033[0m' - echo "${potential_test}" - echo "${potential_test} passed" >> "$logfile" + printf '%s\n' "${potential_test}" + printf '%s\n' "${potential_test} passed" >> "$logfile" else # On fail, print a red '✗' printf '\033[31m✗ \033[0m' - echo "${potential_test}" - echo "${potential_test} failed" >> "$logfile" + printf '%s\n' "${potential_test}" + printf '%s\n' "${potential_test} failed" >> "$logfile" cat "$stdout_file" fi rm "$stdout_file"