From a96875bcb72714b014ff42a1cff9c9ea522f93bb Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 29 Sep 2017 21:12:47 +0200 Subject: count updates not ignored --- bin/pacman-offline | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pacman-offline b/bin/pacman-offline index aae47ef..1cd4cdb 100755 --- a/bin/pacman-offline +++ b/bin/pacman-offline @@ -22,7 +22,7 @@ while getopts 'hy' opt; do done # check for available updates -if ! pacman -Qu >/dev/null; then +if [ "$(pacman -Qu | grep -v '\[ignored\]' | wc -l)" -eq 0 ]; then echo "No updates available." exit 0 fi -- cgit v1.2.3-70-g09d2