From b0b0e857759e72530c347f077ca5923ac757d78f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 24 Sep 2017 23:27:02 +0200 Subject: check for available updates --- bin/pacman-offline | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin') diff --git a/bin/pacman-offline b/bin/pacman-offline index 35bff53..33b2461 100755 --- a/bin/pacman-offline +++ b/bin/pacman-offline @@ -2,6 +2,12 @@ set -e +# check for available updates +if ! pacman -Qu >/dev/null; then + echo "No updates available." + exit 0 +fi + # download packages pacman -Suw --noconfirm -- cgit v1.2.3-70-g09d2