mirror of
https://github.com/sharkdp/bat.git
synced 2024-12-29 17:58:50 +01:00
973ea984c8
SC2155: Declare and assign separately to avoid masking return values. SC2164: Use cd ... || exit in case cd fails. SC2230: which is non-standard. Use builtin 'command -v' instead.
8 lines
201 B
Bash
Executable File
Vendored
8 lines
201 B
Bash
Executable File
Vendored
#!/usr/bin/env bash
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")" || exit
|
|
|
|
python="python3"
|
|
if ! command -v python3 &>/dev/null; then python="python"; fi
|
|
"$python" create_highlighted_versions.py -O highlighted
|