12 lines
288 B
Bash
Executable file
12 lines
288 B
Bash
Executable file
#!/bin/bash
|
|
if ! command -v yay > /dev/null 2>&1
|
|
then
|
|
sudo pacman -S --needed git base-devel
|
|
contextRoot="$(mktemp -d)";
|
|
|
|
git clone https://aur.archlinux.org/yay.git "$contextRoot";
|
|
pushd "$contextRoot" > /dev/null;
|
|
makepkg --noconfirm -si;
|
|
popd > /dev/null;
|
|
fi;
|
|
|