install yay

This commit is contained in:
David Young
2026-04-09 14:07:31 -06:00
parent 69becfef07
commit 11105fa1bd

View File

@@ -50,6 +50,27 @@ cp $HOME/.local/share/HamPackServer/hampackserverupdate $HOME/.local/bin/hampack
cd ~/.local/share/HamPackServer
install_yay() {
rm -rf /tmp/yay
git clone https://aur.archlinux.org/yay.git /tmp/yay
cd /tmp/yay
makepkg -si --noconfirm
cd ~/.local/share/HamPackServer
rm -rf /tmp/yay
}
if ! command -v yay &> /dev/null; then
echo "Installing yay AUR helper..."
install_yay
else
echo "yay is already installed, skipping."
fi
if ! yay --version &> /dev/null; then
echo "yay does not appear to be working, reinstalling..."
install_yay
fi
# Source utility functions
source utils.sh