Update installPackage()

This commit is contained in:
Santiago Lo Coco 2022-01-02 22:57:16 -03:00
parent e3f21ae705
commit 240a2abe52
1 changed files with 5 additions and 1 deletions

View File

@ -161,7 +161,11 @@ installPackage() {
calcWidthAndRun "whiptail --infobox \"Installing '$1'.\" 7 WIDTH"
case ${2} in
A)
if [ $debugFlagToStdout = true ] || [ $debugFlag = true ]; then
script -qec "pacstrap /mnt --needed ${1}" /dev/null 2>&1 | debug
else
pacstrap /mnt --needed ${1} 2>&1 | debug
fi
;;
B)
runInChroot "pacman -Q ${1}" 2>&1 | debug