diff options
author | Christian Hesse <mail@eworm.de> | 2017-10-31 00:00:20 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-10-31 00:00:20 +0100 |
commit | 8cc44e8e7845d9c5693dcf363f9e3111f5843519 (patch) | |
tree | 962499075890a5e0793dc31b6c274955a4180ee3 | |
parent | b7fdcdb1108cd43f71d25bec16a078af301b6f72 (diff) | |
download | pacman-offline-8cc44e8e7845d9c5693dcf363f9e3111f5843519.tar.gz pacman-offline-8cc44e8e7845d9c5693dcf363f9e3111f5843519.tar.zst |
make counting updates independent from locale
-rwxr-xr-x | bin/pacman-offline | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pacman-offline b/bin/pacman-offline index 9f73d13..3c5e7ea 100755 --- a/bin/pacman-offline +++ b/bin/pacman-offline @@ -35,7 +35,8 @@ fi rm -f /system-update # check for available updates -if [ "$(pacman -Qu | grep -v '\[ignored\]' | wc -l)" -eq 0 ]; then +# TODO: remove the grep once a pacman release includes commit ee960048 +if [ "$(pacman -Sup | grep -v '^:: ' | wc -l)" -eq 0 ]; then echo "No updates available." exit 0 fi |