summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/pacman-offline4
1 files changed, 3 insertions, 1 deletions
diff --git a/systemd/pacman-offline b/systemd/pacman-offline
index aab687b..e1b368e 100755
--- a/systemd/pacman-offline
+++ b/systemd/pacman-offline
@@ -11,7 +11,9 @@ fi
rm -f /system-update
# install updates
-pacman --sync --noconfirm --needed archlinux-keyring
+if [ "$(pacman --sync --print --needed archlinux-keyring | wc -l)" -gt 0 ]; then
+ pacman --sync --noconfirm --needed archlinux-keyring
+fi
pacman --sync --noconfirm --sysupgrade
# clean up package cache