Fix bug when test is called "-n"

This commit is contained in:
David Jones 2013-06-26 08:15:07 +01:00
parent 4d3a9eddb5
commit a900722fb7

8
urchin
View File

@ -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"