Added almost everything

This commit is contained in:
Afonso Franco 2023-01-29 02:32:19 +00:00
parent fca3b93dd5
commit 03a9749b46
Signed by: afonso
GPG key ID: C459E0BB3DCEE899
15 changed files with 135 additions and 0 deletions

14
3-post-reboot/aur.sh Executable file
View file

@ -0,0 +1,14 @@
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}"