commit ba17d60e601c672f8e3946f8e73687d0c1d688ec
parent 97eae1fa4d971bfba5b1f6bdb7f4489605158f1d
Author: Markus Hanetzok <markus@hanetzok.net>
Date: Mon, 22 Aug 2022 10:44:18 +0200
Fixed key update and git installs
If a locale is used that wants any other letter as y for confirmation,
piping yes into the makepkg command doesn't work, so the LANG for the
makepkg command is set to C. Also removed an unnecessary option from
keyring update, that broke the update
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/zerog b/zerog
@@ -31,7 +31,7 @@ prepare() {
printf "Refreshing keys...\n(This will take a while!)\n"
pacman-key --refresh >/dev/null 2>&1 ||
{ warning "Could not refresh keys"; return 1; }
- pacman -Sy --noconfirm --needed archlinux-keyring archlinuxarm-keyring \
+ pacman -Sy --noconfirm archlinux-keyring archlinuxarm-keyring \
parabola-keyring >/dev/null 2>&1 ||
{ warning "Could not install keyrings"; return 1; }
@@ -77,7 +77,7 @@ git_install() {
sudo -u "$name" git clone "$2" /tmp/"$1" >/dev/null 2>&1 ||
{ warning "Could not clone $1"; return 1; }
cd /tmp/"$1"
- yes | sudo -u "$name" makepkg -si >/dev/null 2>&1 ||
+ yes | sudo -u "$name" LANG=C makepkg -si >/dev/null 2>&1 ||
{ warning "Could not makepkg $1"; return 1; }
}