PortValhalla/scripts/Arch/Software/yay/install.sh

14 lines
316 B
Bash
Executable file

#!/bin/bash
if ! command -v yay > /dev/null 2>&1
then
sudo pacman --noconfirm -S --needed git
contextRoot="$(mktemp -d)";
git clone https://aur.archlinux.org/yay.git "$contextRoot";
pushd "$contextRoot" > /dev/null;
makepkg --noconfirm -si;
popd > /dev/null;
rm -rf "$contextRoot";
fi;