1
0
Fork 0
This commit is contained in:
Luca Bilke 2023-04-19 16:16:00 +02:00
commit 9c2bc359c8
No known key found for this signature in database
GPG Key ID: 7B77C51E8C779E75
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@
icon="\e[11m\e[10m"
if command -v pacman 1>/dev/null 2>&1; then
printf "%b" "$(pacman -Qu | grep -Fcv "[ignored]" | sed "s/^/$icon /;s/^$icon 0$//g")"
num="$(pacman -Qu | grep -Fcv "[ignored]")"
[ "$num" -gt 0 ] && printf "%b %i" "$icon" "$num"
fi
if command -v apt 1>/dev/null 2>&1; then