summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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