commit b70764ec719b6f40b39c78424e22918a958e5007
parent d17966851cb139bf7f046f25e3c7a9cd6b37abfb
Author: Markus Hanetzok <markus@hanetzok.net>
Date: Sun, 21 Aug 2022 23:54:40 +0200
Refresh keys if needed
Make sure the system has latest keyring so pacman installations run
smoothly
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/zerog b/zerog
@@ -28,8 +28,10 @@ error() {
}
prepare() {
- printf "Preparing...\n"
+ printf "Preparing (This might take a while)...\n"
pacman -S --noconfirm --needed git zsh ca-certificates >/dev/null 2>&1 ||
+ pacman-key --refresh &&
+ 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