From 18a0671aaa4e6d2195d0e783f411098ea90d2541 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Tue, 2 Jun 2020 20:45:19 +0200 Subject: [PATCH] Fix bug in update script --- .local/bin/scripts/update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/scripts/update b/.local/bin/scripts/update index c362a80..39b9fb6 100755 --- a/.local/bin/scripts/update +++ b/.local/bin/scripts/update @@ -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 ;;