Use unbuffer
This commit is contained in:
parent
7195c7eba7
commit
911fa2aa0b
11
install.sh
11
install.sh
|
@ -162,7 +162,8 @@ installPackage() {
|
||||||
case ${2} in
|
case ${2} in
|
||||||
A)
|
A)
|
||||||
if [ $debugFlagToStdout = true ] || [ $debugFlag = true ]; then
|
if [ $debugFlagToStdout = true ] || [ $debugFlag = true ]; then
|
||||||
script -qec "pacstrap /mnt --needed ${1}" /dev/null 2>&1 | debug
|
# script -qec "pacstrap /mnt --needed ${1}" /dev/null 2>&1 | debug
|
||||||
|
( unbuffer pacstrap /mnt --needed ${1} 2>&1 && cat) | debug
|
||||||
else
|
else
|
||||||
pacstrap /mnt --needed ${1} 2>&1 | debug
|
pacstrap /mnt --needed ${1} 2>&1 | debug
|
||||||
fi
|
fi
|
||||||
|
@ -201,6 +202,13 @@ checkForParu() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkForExpect() {
|
||||||
|
commOutput=$(command -v paru > /dev/null 2>&1 || echo 1)
|
||||||
|
if [ "$commOutput" = "1" ]; then
|
||||||
|
pacman -S expect
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
getThePackages() {
|
getThePackages() {
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
if [ ! -f "packages.csv" ]; then
|
if [ ! -f "packages.csv" ]; then
|
||||||
|
@ -217,6 +225,7 @@ getThePackages() {
|
||||||
|
|
||||||
installImportantPackages() {
|
installImportantPackages() {
|
||||||
calcHeightAndRun "whiptail --msgbox \"We will continue with the installation of some important packages in the background. Please press OK and wait.\" HEIGHT 60 3>&1 1>&2 2>&3"
|
calcHeightAndRun "whiptail --msgbox \"We will continue with the installation of some important packages in the background. Please press OK and wait.\" HEIGHT 60 3>&1 1>&2 2>&3"
|
||||||
|
checkForExpect
|
||||||
getThePackages "Y" "installImportantPackages"
|
getThePackages "Y" "installImportantPackages"
|
||||||
runInChroot "systemctl enable NetworkManager; systemctl enable fstrim.timer" 2>&1 | debug
|
runInChroot "systemctl enable NetworkManager; systemctl enable fstrim.timer" 2>&1 | debug
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue