2023-04-03 20:59:06 +00:00
|
|
|
#!/bin/bash
|
2023-04-04 15:18:53 +00:00
|
|
|
if ! command -v yay > /dev/null 2>&1
|
|
|
|
then
|
2024-03-07 20:23:55 +00:00
|
|
|
sudo pacman --noconfirm -S --needed git
|
2023-04-04 15:18:53 +00:00
|
|
|
contextRoot="$(mktemp -d)";
|
|
|
|
|
|
|
|
git clone https://aur.archlinux.org/yay.git "$contextRoot";
|
|
|
|
pushd "$contextRoot" > /dev/null;
|
|
|
|
makepkg --noconfirm -si;
|
|
|
|
popd > /dev/null;
|
2024-03-08 22:59:30 +00:00
|
|
|
|
|
|
|
rm -rf "$contextRoot";
|
2023-04-04 15:18:53 +00:00
|
|
|
fi;
|