Files
lnx-arch/scripts/99_yay.sh
tuxwarrior 39f2ba21ee u
2024-05-01 16:24:45 -05:00

22 lines
407 B
Bash

#!/usr/bin/env bash
# klevstul
# https://itsfoss.com/install-yay-arch-linux/
echo "<< 99_yay.sh >>"
user=poq
if [ "$EUID" -ne 0 ]
then echo "error: run as 'root'"
exit
fi
rm -rf /tmp/yay
runuser -l ${user} -c 'cd /tmp'
runuser -l ${user} -c 'git clone https://aur.archlinux.org/yay.git'
runuser -l ${user} -c 'cd /tmp/yay'
runuser -l ${user} -c 'makepkg -si'
runuser -l ${user} -c 'yay --version'