Change consent banner (and fix tput) in info.sh

This commit is contained in:
Ethan P 2020-02-23 14:28:57 -08:00 committed by David Peter
parent 63f6343cf1
commit ebe475247c
1 changed files with 5 additions and 4 deletions

View File

@ -87,9 +87,10 @@ _ask_module() {
cat 1>&2 <<EOF cat 1>&2 <<EOF
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
This script will collect information to help assist in issue resolution. This script runs some harmless commands to collect information about your
You will be provided with a description of the data collected, and will be system and bat configuration. It will give you a small preview of the commands
offered the opportunity to give consent for each piece of information collected. that will be run, and ask consent before running them. Once completed, it will
output a small report that you can review and copy into the issue description.
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
EOF EOF
@ -113,7 +114,7 @@ EOF
printf "\n" 1>&2 printf "\n" 1>&2
local response local response
while true; do while true; do
_tput cup "$(( $(tput lines 2>/dev/null || echo 22) - 1 ))" _tput cup "$(( $(tput lines || echo 22) - 2 ))"
_tput el _tput el
read -er -p "Collect $(sed 's/_/ /' <<< "$1") data? [Y/n] " response read -er -p "Collect $(sed 's/_/ /' <<< "$1") data? [Y/n] " response
case "$response" in case "$response" in