aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-10-31 00:00:20 +0100
committerGravatar Christian Hesse <mail@eworm.de>2017-10-31 00:00:20 +0100
commit8cc44e8e7845d9c5693dcf363f9e3111f5843519 (patch)
tree962499075890a5e0793dc31b6c274955a4180ee3
parentb7fdcdb1108cd43f71d25bec16a078af301b6f72 (diff)
downloadpacman-offline-8cc44e8e7845d9c5693dcf363f9e3111f5843519.tar.gz
pacman-offline-8cc44e8e7845d9c5693dcf363f9e3111f5843519.tar.zst
make counting updates independent from locale
-rwxr-xr-xbin/pacman-offline3
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