mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-22 07:43:39 +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 LC_ALL=C
|
||||||
export LANG=C
|
export LANG=C
|
||||||
|
|
||||||
if command -v batcat &> /dev/null; then
|
BAT="bat"
|
||||||
BAT="batcat"
|
if ! command -v bat &>/dev/null; then
|
||||||
else
|
if command -v batcat &> /dev/null; then
|
||||||
BAT="bat"
|
BAT="batcat"
|
||||||
|
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
|
fi
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user