print newline if zero for news and mailcount via printf

This commit is contained in:
2020-09-17 13:44:38 +02:00
parent 7edeec270d
commit bc32fcc81f
2 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,4 @@
#!/bin/bash
num=$(find ~/.local/share/mail/*/INBOX/new -type f | wc -l)
if [ $num != 0 ]; then
echo "📬"$num
else
echo ""
fi
[ $num != 0 ] && printf "📬%s" "$num"
printf '\n'