Replace non-portable use of echo -ne with entirely lovely and

portable printf.
This commit is contained in:
David Jones 2013-06-18 22:11:04 +01:00
parent dcc6addc53
commit 40f9a967c3

4
urchin
View File

@ -57,12 +57,12 @@ recurse() {
if [ "$exit_code" = '0' ]
then
# On success, print a '✓'
echo -ne '\033[32m✓ \033[0m'
printf '\033[32m✓ \033[0m'
echo "${potential_test}"
echo "${potential_test} passed" >> "$logfile"
else
# On fail, print a red '✗'
echo -ne '\033[31m✗ \033[0m'
printf '\033[31m✗ \033[0m'
echo "${potential_test}"
echo "${potential_test} failed" >> "$logfile"
cat $stdout_file