Fix bug in update script

This commit is contained in:
Wiktor Zykubek 2020-06-02 20:45:19 +02:00
parent 05f12bc50e
commit 18a0671aaa

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
;;