getmail handles 0 mails correctly
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
num=$(find ~/.local/share/mail/*/INBOX/new -type f | wc -l)
|
num=$(find ~/.local/share/mail/*/INBOX/new -type f | wc -l)
|
||||||
[ $num != 0 ] && echo "📬"$num
|
if [ $num != 0 ]; then
|
||||||
|
echo "📬"$num
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user