14 lines
290 B
Bash
Executable File
14 lines
290 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
if [[ ! -f "/usr/bin/yay" ]] ; then
|
|
# no yay
|
|
sudo pacman -S --needed --noconfirm base-devel
|
|
rm -rf /tmp/yay
|
|
mkdir -p /tmp/yay
|
|
git clone https://aur.archlinux.org/yay.git /tmp/yay
|
|
cd /tmp/yay
|
|
makepkg -si --noconfirm
|
|
fi
|
|
|
|
echo "Yay installed"
|