summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/portageq5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/portageq b/bin/portageq
index d7ea72bf5..547a70d6c 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -660,6 +660,11 @@ else:
pass
def main():
+
+ nocolor = os.environ.get('NOCOLOR')
+ if nocolor in ('yes', 'true'):
+ portage.output.nocolor()
+
if "-h" in sys.argv or "--help" in sys.argv:
usage(sys.argv)
sys.exit(os.EX_OK)