|
|
@ -88,10 +88,9 @@ install_aur_helper() {
|
|
|
|
dialog --title "Installing the AUR Helper" --infobox "Installing dependencies..." 0 0
|
|
|
|
dialog --title "Installing the AUR Helper" --infobox "Installing dependencies..." 0 0
|
|
|
|
pacman --noconfirm --needed -S go &>> $logfile
|
|
|
|
pacman --noconfirm --needed -S go &>> $logfile
|
|
|
|
dialog --title "Installing the AUR Helper" --infobox "Cloning repository..." 0 0
|
|
|
|
dialog --title "Installing the AUR Helper" --infobox "Cloning repository..." 0 0
|
|
|
|
dir=$(mktemp -d)
|
|
|
|
cd "$(sudo -u '$uname' mktemp -d)" || exit
|
|
|
|
git clone https://aur.archlinux.org/yay.git "$dir" &>> $logfile
|
|
|
|
git clone https://aur.archlinux.org/yay.git . &>> $logfile
|
|
|
|
cd "$dir" || exit
|
|
|
|
sudo -u "$uname" makepkg --noconfirm -si &>> $logfile
|
|
|
|
sudo -u $uname makepkg --noconfirm -si &>> $logfile
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
installation_loop() {
|
|
|
|
installation_loop() {
|
|
|
@ -104,7 +103,7 @@ installation_loop() {
|
|
|
|
#IFS separator
|
|
|
|
#IFS separator
|
|
|
|
while IFS=, read -r platform prefix program info; do
|
|
|
|
while IFS=, read -r platform prefix program info; do
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ${platform} != "A" ]] && [[ ${platform} != ${curr_plattform} ]]; then
|
|
|
|
if [[ ${platform} != "A" ]] && [[ ${platform} != ${curr_platform} ]]; then
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|