From 240a2abe52536b0dfc8e9afd4d16edc3eca54687 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sun, 2 Jan 2022 22:57:16 -0300 Subject: [PATCH] Update installPackage() --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 03ef853..66c7f3b 100755 --- a/install.sh +++ b/install.sh @@ -161,7 +161,11 @@ installPackage() { calcWidthAndRun "whiptail --infobox \"Installing '$1'.\" 7 WIDTH" case ${2} in A) - pacstrap /mnt --needed ${1} 2>&1 | debug + 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