dotfiles/.local/bin/statusbar/getmail

8 lines
129 B
Bash
Executable File

#!/bin/bash
num=$(find ~/.local/share/mail/*/INBOX/new -type f | wc -l)
if [ $num != 0 ]; then
echo "📬"$num
else
echo ""
fi