pacman -Sy

This commit is contained in:
eoli3n 2020-05-06 11:14:53 +02:00
parent fd534e9e8a
commit e595441e43

2
init
View file

@ -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