diff --git a/install.sh b/install.sh index 4fa4b66..a0852b5 100755 --- a/install.sh +++ b/install.sh @@ -25,13 +25,7 @@ updateSystemClock() { printAndExit() { str="${1} Therefore, the installation process will stop, but you can continue where you left off by running:\n\nsh calsais" - newlines=$(printf "$str" | grep -c $'\n') - chars=$(echo "$str" | wc -c) - height=$(echo "$chars" "$newlines" | awk '{ - x = (($1 - $2 + ($2 * 60)) / 60) - printf "%d", (x == int(x)) ? x : int(x) + 1 - }') - whiptail --msgbox "$str" $((5+height)) 60 3>&1 1>&2 2>&3 + calcHeightAndRun "whiptail --msgbox \"${str}\" HEIGHT 60" exit 1 }