Move loadUsername() call
This commit is contained in:
parent
e1b8edc609
commit
48219a97c0
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue