install yay
This commit is contained in:
21
install.sh
21
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user