From bcbbc25636247279b23b3a001c2813ffdf39e693 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sun, 2 Jan 2022 21:58:06 -0300 Subject: [PATCH] Set buffering type to unbuffered for pacman pipes --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 1ea6879..f51258c 100755 --- a/install.sh +++ b/install.sh @@ -148,7 +148,7 @@ mountPart() { debug() { while read -r input; do if [ $debugFlag = true ]; then - echo "$input" + tee elif [ $debugFlagToFile = true ]; then echo "$input" >> CocoASAIS.debug else @@ -166,12 +166,12 @@ installPackage() { B) runInChroot "pacman -Q ${1}" 2>&1 | debug [ $? -eq 0 ] && return - runInChroot "pacman -S --needed --noconfirm ${1}" 2>&1 | debug + runInChroot "script -qec \"pacman -S --needed --noconfirm ${1}\" /dev/null" 2>&1 | debug ;; C) runInChroot "sudo -u $username paru -Q ${1}" 2>&1 | debug [ $? -eq 0 ] && return - runInChroot "sudo -u $username paru -S --needed --noconfirm --skipreview ${1}" 2>&1 | debug + runInChroot "script -qec \"sudo -u $username paru -S --needed --noconfirm --skipreview ${1}\" /dev/null" 2>&1 | debug ;; ?) logAndExit "INSTALL must be A, B or C in packages.csv file." "${3}"