Browse Source

ci: more lenient check for is_ci in lib.util.download

AppVeyor sets CI=True or CI=true, not CI=1
Jeremy Apthorp 6 years ago
parent
commit
260f7775e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/lib/util.py

+ 1 - 1
script/lib/util.py

@@ -87,7 +87,7 @@ def download(text, url, path):
     downloaded_size = 0
     block_size = 128
 
-    ci = os.environ.get('CI') == '1'
+    ci = os.environ.get('CI') is not None
 
     while True:
       buf = web_file.read(block_size)