mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-22 15:53:29 +01:00
Change consent banner (and fix tput) in info.sh
This commit is contained in:
parent
63f6343cf1
commit
ebe475247c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user