Fix bug when test is called "-n"
This commit is contained in:
parent
4d3a9eddb5
commit
a900722fb7
8
urchin
8
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"
|
||||
|
Loading…
Reference in New Issue
Block a user