From 48219a97c08c49f0d9020093c3a90f9a66759d7f Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Mon, 3 Jan 2022 00:17:11 -0300 Subject: [PATCH] Move loadUsername() call --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 22ae97c..be4a47f 100755 --- a/install.sh +++ b/install.sh @@ -197,7 +197,6 @@ checkForParu() { commOutput=$(runInChroot "command -v paru > /dev/null 2>&1 || echo 1") if [ "$commOutput" = "1" ]; then runInChroot "sed -i 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers" - [ -z $username ] && loadUsername runInChroot "cd /tmp; sudo -u $username git clone https://aur.archlinux.org/paru-bin.git; cd paru-bin; sudo -u $username makepkg -si --noconfirm; cd ..; rm -rf paru-bin" 2>&1 | debug fi } @@ -361,6 +360,7 @@ EOF installOtherPackages() { calcHeightAndRun "whiptail --msgbox \"Now, we will install a few more packages (in the background). Press OK and wait (it may take some time).\" HEIGHT 60 3>&1 1>&2 2>&3" + [ -z $username ] && loadUsername getThePackages "S" "installOtherPackages" checkForParu getThePackages "N" "installOtherPackages"