14 lines
467 B
Bash
Executable file
14 lines
467 B
Bash
Executable file
echo 'Install yay.'
|
|
sudo pacman -S --needed base base-devel wget --noconfirm
|
|
mkdir -p /home/afonso/git/yay
|
|
tmpdir="/home/afonso/git/yay"
|
|
command cd "${tmpdir}" || return 1
|
|
dl_url="$(
|
|
command curl -sfLS 'https://api.github.com/repos/Jguer/yay/releases/latest' | grep 'browser_download_url' | tail -1 | cut -d \" -f 4
|
|
)"
|
|
command wget "${dl_url}"
|
|
command tar xzvf yay_*_x86_64.tar.gz
|
|
command cd yay_*_x86_64 || return 1
|
|
./yay -Sy yay-bin --noconfirm
|
|
rm -rf "${tmpdir}"
|
|
|