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