From e595441e4304e6a2ef162e781afd93a1a9da2252 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Wed, 6 May 2020 11:14:53 +0200 Subject: [PATCH] pacman -Sy --- init | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init b/init index 83b1b0d..36c5337 100755 --- a/init +++ b/init @@ -44,6 +44,7 @@ EOF pacman-key --recv-keys F75D9D76 2>/dev/null pacman-key --lsign-key F75D9D76 2>/dev/null + pacman -Sy } init_archlinux_archive () { @@ -52,6 +53,7 @@ init_archlinux_archive () { # Set repo repo="Server=https://archive.archlinux.org/repos/$1/\$repo/os/\$arch" + pacman -Syy # If repo exists, set it, if not, return False curl -s "$repo" && echo "$repo" > /etc/pacman.d/mirrorlist || return 1