dotfiles/crates/00-system/crate.arch.sh

11 lines
375 B
Bash
Raw Permalink Normal View History

2023-09-01 03:34:16 +02:00
super_apply() {
pacman -S --needed sudo reflector
if ! grep -q "Reflector" /etc/pacman.d/mirrorlist; then
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
reflector -c NL -f 10 --threads 4 --save /etc/pacman.d/mirrorlist
else
echo "err: reflector already executed -- skipping..."
fi
cp files/pacman.conf /etc/pacman.conf
}