diff options
author | Christian Hesse <mail@eworm.de> | 2017-09-29 21:12:47 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-09-29 21:12:47 +0200 |
commit | a96875bcb72714b014ff42a1cff9c9ea522f93bb (patch) | |
tree | d226e67c7c25b848f2d176d72e76d6cf268f3324 /bin | |
parent | d6f8f5da78eccdfe5eca61795ebc15f5ce9d4080 (diff) | |
download | pacman-offline-a96875bcb72714b014ff42a1cff9c9ea522f93bb.tar.gz pacman-offline-a96875bcb72714b014ff42a1cff9c9ea522f93bb.tar.zst |
count updates not ignored
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pacman-offline | 2 |
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 |