mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-18 20:11:03 +00:00
Prevent batcat warning from being in output of info.sh
This commit is contained in:
parent
7bc4020a92
commit
0cb884d501
@ -217,12 +217,17 @@ _run_module() {
|
|||||||
|
|
||||||
# Tell the user if their executable isn't named "bat".
|
# Tell the user if their executable isn't named "bat".
|
||||||
if [[ "$BAT" != "bat" ]] && [[ "$1" != '-y' ]]; then
|
if [[ "$BAT" != "bat" ]] && [[ "$1" != '-y' ]]; then
|
||||||
|
trap '_tput rmcup; exit 1' INT
|
||||||
|
_tput smcup
|
||||||
|
_tput clear
|
||||||
|
_tput cup 0 0
|
||||||
_tput setaf 1
|
_tput setaf 1
|
||||||
printf "The %s executable on your system is named '%s'.\n%s\n" "bat" "$BAT" \
|
printf "The %s executable on your system is named '%s'.\n%s\n" "bat" "$BAT" \
|
||||||
"If your issue is related to installation, please check that this isn't the issue."
|
"If your issue is related to installation, please check that this isn't the issue."
|
||||||
_tput sgr0
|
_tput sgr0
|
||||||
printf "Press any key to continue...\n"
|
printf "Press any key to continue...\n"
|
||||||
read -rsn1
|
read -rsn1
|
||||||
|
_tput rmcup
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ask for consent.
|
# Ask for consent.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user