From 8cc44e8e7845d9c5693dcf363f9e3111f5843519 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 31 Oct 2017 00:00:20 +0100 Subject: make counting updates independent from locale --- bin/pacman-offline | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2