aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
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