From ebe475247c736db09e8d8a3af1aa203419b95972 Mon Sep 17 00:00:00 2001 From: Ethan P Date: Sun, 23 Feb 2020 14:28:57 -0800 Subject: [PATCH] Change consent banner (and fix tput) in info.sh --- diagnostics/info.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/diagnostics/info.sh b/diagnostics/info.sh index 32875200..f92c594c 100755 --- a/diagnostics/info.sh +++ b/diagnostics/info.sh @@ -87,9 +87,10 @@ _ask_module() { cat 1>&2 <&2 local response while true; do - _tput cup "$(( $(tput lines 2>/dev/null || echo 22) - 1 ))" + _tput cup "$(( $(tput lines || echo 22) - 2 ))" _tput el read -er -p "Collect $(sed 's/_/ /' <<< "$1") data? [Y/n] " response case "$response" in