mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-06-21 04:07:47 +02:00
Fix regression where --color
would no longer work by itself
This commit is contained in:
parent
1be18569c9
commit
47c15dd264
@ -24,6 +24,7 @@ hook_color() {
|
|||||||
--no-color) OPT_COLOR=false ;;
|
--no-color) OPT_COLOR=false ;;
|
||||||
--color) {
|
--color) {
|
||||||
case "$OPT_VAL" in
|
case "$OPT_VAL" in
|
||||||
|
"") OPT_COLOR=true ;;
|
||||||
always | true) OPT_COLOR=true ;;
|
always | true) OPT_COLOR=true ;;
|
||||||
never | false) OPT_COLOR=false ;;
|
never | false) OPT_COLOR=false ;;
|
||||||
auto) return 0 ;;
|
auto) return 0 ;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user