diff --git a/update-since-todo.py b/update-since-todo.py index 3b0241a9928f..38563e6ca488 100755 --- a/update-since-todo.py +++ b/update-since-todo.py @@ -102,8 +102,8 @@ def analyze_files(commits_and_tags, dry_run=False): "*.js", ] - runningInCI = os.environ.get("CI", "false") == "true" - if runningInCI: + is_ci = "CI" in os.environ + if is_ci: print("
Detailed output\n\n") with subprocess.Popen(cmd, stdout=subprocess.PIPE) as proc: for line in io.TextIOWrapper(proc.stdout): @@ -113,7 +113,7 @@ def analyze_files(commits_and_tags, dry_run=False): if retcode: raise subprocess.CalledProcessError(retcode, cmd) print() - if runningInCI: + if is_ci: print("
\n")