Fix regression where --color would no longer work by itself

This commit is contained in:
Ethan P 2020-04-01 13:40:57 -07:00
parent 1be18569c9
commit 47c15dd264
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA

View File

@ -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 ;;