mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-21 23:33:26 +01:00
Do not warn if both 'bat' and 'batcat' are available in info.sh
This commit is contained in:
parent
0cb884d501
commit
dcfdbf82dd
@ -7,10 +7,18 @@ set -o pipefail
|
||||
export LC_ALL=C
|
||||
export LANG=C
|
||||
|
||||
if command -v batcat &> /dev/null; then
|
||||
BAT="bat"
|
||||
if ! command -v bat &>/dev/null; then
|
||||
if command -v batcat &> /dev/null; then
|
||||
BAT="batcat"
|
||||
else
|
||||
BAT="bat"
|
||||
else
|
||||
tput setaf 1
|
||||
printf "%s\n%s\n" \
|
||||
"Unable to find a bat executable on your PATH." \
|
||||
"Please ensure that 'bat' exists and is not named something else."
|
||||
tput sgr0
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user