From 4968f2e210d09a91ba920a0d4895e49c060f8345 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Fri, 28 Jan 2022 19:27:20 -0300 Subject: [PATCH] Replace whiptail (128:288) --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index ea9bbd5..7cdeef6 100755 --- a/install.sh +++ b/install.sh @@ -199,7 +199,7 @@ debug() { } installPackage() { - calcWidthAndRun "whiptail --infobox \"\nInstalling '$1'.\" 5 WIDTH" + calcWidthAndRun dialog --infobox "\"\nInstalling '$1'.\"" 5 WIDTH case ${3} in A) if [ "$debugFlagToStdout" = true ] || [ "$debugFlag" = true ]; then @@ -264,11 +264,11 @@ getThePackages() { curl -LO "https://raw.githubusercontent.com/santilococo/calsais/master/packages.csv" 2>&1 | debug fi if [ "$IMPORTANT" = "N" ]; then - calcHeightAndRun "whiptail --msgbox \"A menu will appear where you can deselect the packages you don't want to be installed.\" HEIGHT 60" + dialog --msgbox "\nA menu will appear where you can deselect the packages you don't want to be installed." 8 59 local IFS=$'\n' setDelimiters "" "ON" formatOptions <(grep "N" packages.csv | sed -n '2~1p' | cut -d',' -f1) - packages=$(whiptail --title "Packages" --separate-output --checklist "Press TAB to select Ok or Cancel. If you don't want to install any packages, press Cancel." 28 50 19 "${options[@]}" 3>&1 1>&2 2>&3) + packages=$(dialog --title "Packages" --separate-output --checklist "\nIf you don't want to install any packages, press Cancel." 28 46 19 "${options[@]}" 3>&1 1>&2 2>&3) tempFile=$(mktemp) for package in $packages; do grep "^$package," packages.csv >> "$tempFile"