aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-09-29 21:12:47 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-09-29 21:12:47 +0200
commita96875bcb72714b014ff42a1cff9c9ea522f93bb (patch)
treed226e67c7c25b848f2d176d72e76d6cf268f3324 /bin
parentd6f8f5da78eccdfe5eca61795ebc15f5ce9d4080 (diff)
downloadpacman-offline-a96875bcb72714b014ff42a1cff9c9ea522f93bb.tar.gz
pacman-offline-a96875bcb72714b014ff42a1cff9c9ea522f93bb.tar.zst
count updates not ignored
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pacman-offline2
1 files changed, 1 insertions, 1 deletions
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