From a0a43f06af2034d5a35d4da0deb5a509fe679696 Mon Sep 17 00:00:00 2001 From: Toerd Date: Sat, 15 Sep 2018 23:54:46 +0200 Subject: [PATCH] Bugs fixed --- fresh.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fresh.sh b/fresh.sh index a6f5356..0398719 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 - dir=$(mktemp -d) - git clone https://aur.archlinux.org/yay.git "$dir" &>> $logfile - cd "$dir" || exit - sudo -u $uname makepkg --noconfirm -si &>> $logfile + cd "$(sudo -u '$uname' mktemp -d)" || exit + git clone https://aur.archlinux.org/yay.git . &>> $logfile + sudo -u "$uname" makepkg --noconfirm -si &>> $logfile } installation_loop() { @@ -104,7 +103,7 @@ installation_loop() { #IFS separator while IFS=, read -r platform prefix program info; do - if [[ ${platform} != "A" ]] && [[ ${platform} != ${curr_plattform} ]]; then + if [[ ${platform} != "A" ]] && [[ ${platform} != ${curr_platform} ]]; then continue fi