From f2e2557742a0ddfe12d6c92048a1c7107a2e120f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 24 Jan 2018 20:22:47 +0100 Subject: remove grep that is no longer required with pacman >= 5.1.0 --- bin/pacman-offline | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/pacman-offline b/bin/pacman-offline index 3c5e7ea..9976742 100755 --- a/bin/pacman-offline +++ b/bin/pacman-offline @@ -35,8 +35,7 @@ fi rm -f /system-update # check for available updates -# TODO: remove the grep once a pacman release includes commit ee960048 -if [ "$(pacman -Sup | grep -v '^:: ' | wc -l)" -eq 0 ]; then +if [ "$(pacman -Sup | wc -l)" -eq 0 ]; then echo "No updates available." exit 0 fi -- cgit v1.2.3-70-g09d2