fix: icons

This commit is contained in:
David JULIEN 2021-09-09 22:18:10 +02:00
parent 8c0da4f9b6
commit 0aa8c15431

View File

@ -15,11 +15,11 @@ for acc in $(ls "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/)
do do
new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)" new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)"
if [ $new -gt 0 ]; then if [ $new -gt 0 ]; then
[ -n "$(echo "$acc" | sed -n '/@etu/p')" ] && box="" [ -n "$(echo "$acc" | sed -n '/@ens/p')" ] && box=""
[ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box="" [ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box=""
unread="$unread/$box$new" unread="$unread/$box$new"
fi fi
done done
[ -n "$unread" ] && unread="($(echo "$unread" | cut -c 2-))" || exit [ -n "$unread" ] && unread="($(echo "$unread" | cut -c 2-))" || exit
printf " %s%s " "$unread" "$icon" printf " %s%s " "$unread" "$icon"