From 11fdda72e76b127302ffcc8090267fb1e7c5f73e Mon Sep 17 00:00:00 2001 From: beech Date: Wed, 19 Feb 2025 19:04:36 -0600 Subject: [PATCH] Fix package installs --- install1.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install1.sh b/install1.sh index 4ccf280..ae294e1 100644 --- a/install1.sh +++ b/install1.sh @@ -67,6 +67,10 @@ pacman -S archlinux-keyring --noconfirm pacman -S pacman-contrib terminus-font --noconfirm --needed sed -i 's/^#ParallelDownloads/ParallelDownloads/' /etc/pacman.conf pacman -S reflector rsync --noconfirm --needed +if ! command -v reflector &> /dev/null; then + echo "Reflector not found - reinstalling..." + pacman -S reflector --noconfirm --needed +fi reflector -a 48 -c "US" -f 5 -l 20 --sort rate --save /etc/pacman.d/mirrorlist # install arch