summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-09-24 23:27:02 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-09-24 23:27:02 +0200
commitb0b0e857759e72530c347f077ca5923ac757d78f (patch)
treeb7a217919849ef906470126ab46c3cb2ca72b4c5 /bin
parent4234b0696c68e20f9b9b3e0254058176069833a7 (diff)
downloadpacman-offline-b0b0e857759e72530c347f077ca5923ac757d78f.tar.gz
pacman-offline-b0b0e857759e72530c347f077ca5923ac757d78f.tar.zst
check for available updates
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pacman-offline6
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