From 11105fa1bd99396a95ca85fc25aa29e8bc7db2c4 Mon Sep 17 00:00:00 2001 From: David Young Date: Thu, 9 Apr 2026 14:07:31 -0600 Subject: [PATCH] install yay --- install.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/install.sh b/install.sh index 6cbbe6c..0cf68c8 100755 --- a/install.sh +++ b/install.sh @@ -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