Jelajahi Sumber

Fix color configuration directive

Theo Brigitte 11 bulan lalu
induk
melakukan
37735e464c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      borgmatic/logger.py

+ 1 - 1
borgmatic/logger.py

@@ -38,7 +38,7 @@ def should_do_markup(no_color, configs):
     if no_color:
         return False
 
-    if any(config.get('output', {}).get('color') is False for config in configs.values()):
+    if any(config.get('color', True) is False for config in configs.values()):
         return False
 
     if os.environ.get('NO_COLOR', None):