dotfiles/distros/arch/user-scripts/00-yay.sh

14 lines
182 B
Bash
Raw Normal View History

2023-08-23 06:14:56 +02:00
#!/bin/sh
# Installs yay.
[ "$UID" = "0" ] || exit 0
yaytmpdir=$(mktemp -d)
git clone https://aur.archlinux.org/yay $yaytmpdir
oldpwd=$(pwd)
cd $yaytmpdir
makepkg -si
cd $oldpwd