Fix bug in update script

This commit is contained in:
samedamci 2020-06-02 20:45:19 +02:00
parent ffbc501842
commit 276b893f50
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894

View File

@ -14,9 +14,9 @@ case "$action" in
;;
" Show packages")
packages() { pacman -Qu; }
packages() { pacman -Qu | wc -l ;}
if [ "$(packages)" -gt 0 ]; then
pacman -Qu | dmenu -l 50
pacman -Qu | rofi -dmenu -l 50
else notify-send "Nothing to update!"
fi
;;