yay install fix

This commit is contained in:
David Young
2026-03-15 09:10:40 -06:00
parent 5de7e5e034
commit a04dd1232f

View File

@@ -87,27 +87,33 @@ cd ~/
# Install yay AUR helper if not present
if ! command -v yay &> /dev/null; then
echo "Installing yay AUR helper..."
sudo pacman -S --needed git base-devel --noconfirm
if [[ ! -d "yay" ]]; then
echo "Cloning yay repository..."
else
echo "yay directory already exists, removing it..."
rm -rf yay
fi
git clone https://aur.archlinux.org/yay.git
cd yay
echo "building yay.... yaaaaayyyyy"
makepkg -si --noconfirm
cd ..
rm -rf yay
else
echo "yay is already installed"
if command -v yay &> /dev/null; then
echo "yay is already installed, skipping."
exit 0
fi
echo "Installing yay AUR helper..."
sudo pacman -S --needed --noconfirm git base-devel
# Clean up any leftover yay directory from a previous failed install
if [[ -d "yay" ]]; then
echo "Removing leftover yay directory..."
rm -rf yay
fi
echo "Cloning yay repository..."
git clone https://aur.archlinux.org/yay.git
echo "Building yay..."
cd yay
makepkg -si --noconfirm
cd ..
echo "Cleaning up..."
rm -rf yay
echo "yay installed successfully."
# Install packages by category
if [[ "$DEV_ONLY" == true ]]; then