From 2c324f6facc91c7fa5013bec3b91cf547c35bd84 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 8 Jan 2020 09:58:59 +0100 Subject: attempt to install archlinux-keyring only if needed --- systemd/pacman-offline | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2