diff options
author | Christian Hesse <mail@eworm.de> | 2017-09-24 23:27:02 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-09-24 23:27:02 +0200 |
commit | b0b0e857759e72530c347f077ca5923ac757d78f (patch) | |
tree | b7a217919849ef906470126ab46c3cb2ca72b4c5 /bin | |
parent | 4234b0696c68e20f9b9b3e0254058176069833a7 (diff) | |
download | pacman-offline-b0b0e857759e72530c347f077ca5923ac757d78f.tar.gz pacman-offline-b0b0e857759e72530c347f077ca5923ac757d78f.tar.zst |
check for available updates
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pacman-offline | 6 |
1 files changed, 6 insertions, 0 deletions
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 |