mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-13 17:50:56 +01: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…
Reference in New Issue
Block a user