From ce03434c22119b76531ec78f75ce294e49ac0a3c Mon Sep 17 00:00:00 2001 From: Toerd Date: Sun, 16 Sep 2018 00:27:37 +0200 Subject: [PATCH] Bugs fixed --- fresh.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fresh.sh b/fresh.sh index 884036e..d2a7c8a 100755 --- a/fresh.sh +++ b/fresh.sh @@ -88,10 +88,9 @@ 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 - d=$(sudo -u '$uname' mktemp -d) || exit - git clone https://aur.archlinux.org/yay.git $d &>> $logfile - cd $d - sudo -u "$uname" makepkg --noconfirm -si &>> $logfile + cd $(sudo -u $uname mktemp -d) + git clone https://aur.archlinux.org/yay.git . &>> $logfile + sudo -u $uname makepkg --noconfirm -si &>> $logfile } installation_loop() {