diff options
author | Christian Hesse <mail@eworm.de> | 2018-01-24 20:22:47 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-01-24 20:22:47 +0100 |
commit | f2e2557742a0ddfe12d6c92048a1c7107a2e120f (patch) | |
tree | 0b75cd884b1612d5b8b78867f87c3adfe6d4c426 | |
parent | 0e15fbc469ba54d3d37bed4b30bcecd387caba85 (diff) | |
download | pacman-offline-f2e2557742a0ddfe12d6c92048a1c7107a2e120f.tar.gz pacman-offline-f2e2557742a0ddfe12d6c92048a1c7107a2e120f.tar.zst |
remove grep that is no longer required with pacman >= 5.1.0pacman-5-1
-rwxr-xr-x | bin/pacman-offline | 3 |
1 files changed, 1 insertions, 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 |