commit 8fc04ffe8d6beb6e6caf7bb48076c0b9645e7326 parent b70764ec719b6f40b39c78424e22918a958e5007 Author: Markus Hanetzok <markus@hanetzok.net> Date: Mon, 22 Aug 2022 00:01:37 +0200 Add missing keyring update Diffstat:
M | zerog | | | 10 | ++++++++-- |
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/zerog b/zerog @@ -29,10 +29,16 @@ error() { prepare() { printf "Preparing (This might take a while)...\n" - pacman -S --noconfirm --needed git zsh ca-certificates >/dev/null 2>&1 || + yes | pacman -Sy archliux-keyring archlinuxarm-keyring parabola-keyring \ + >/dev/null 2>&1 || pacman-key --refresh && - pacman -S --noconfirm --needed git zsh ca-certificates >/dev/null 2>&1 || + yes | pacman -Sy archliux-keyring archlinuxarm-keyring parabola-keyring \ + >/dev/null 2>&1 || + { warning "Could not update keyrings"; return 1; } + + pacman -S --noconfirm --needed git zsh ca-certificates >/dev/null 2>&1 || { warning "Initial installs failed"; return 1; } + grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf sed -Ei "s/^#(ParallelDownloads).*/\1 = 5/;/^#Color$/s/#//" /etc/pacman.conf