diff --git a/fresh.sh b/fresh.sh index bb82e58..60d9c80 100755 --- a/fresh.sh +++ b/fresh.sh @@ -114,7 +114,7 @@ install_aur_helper() { dialog --title "Installing the AUR Helper" --infobox "Installing dependencies..." 0 0 pacman --noconfirm --needed -S go &>> $logfile dialog --title "Installing the AUR Helper" --infobox "Cloning repository..." 0 0 - cd $(mktemp -d) + cd $(sudo - u $uname mktemp -d) git clone https://aur.archlinux.org/yay.git . &>> $logfile sudo -u $uname makepkg --noconfirm -s &>> $logfile pacman -U --noconfirm *.zst