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"