12 lines
No EOL
392 B
Bash
12 lines
No EOL
392 B
Bash
super_apply() {
|
|
pacman -Syyu
|
|
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
|
|
} |