From: Matthew Fernandez Date: Wed, 9 Feb 2022 05:53:46 +0000 (+1100) Subject: CI: shell escape echoed output during Windows build X-Git-Tag: 3.0.0~32^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb503e5ef5712c804a1f7e7c88c78d2094f53797;p=graphviz CI: shell escape echoed output during Windows build Makes it slightly easier to copy and paste these commands if necessary. --- diff --git a/ci/build_windows.py b/ci/build_windows.py index b4a242811..1db270ad0 100644 --- a/ci/build_windows.py +++ b/ci/build_windows.py @@ -5,13 +5,14 @@ import argparse import os from pathlib import Path +import shlex import shutil import subprocess import sys from typing import List def run(args: List[str], cwd: Path): #pylint: disable=C0116 - print(f"+ {' '.join(str(x) for x in args)}") + print(f"+ {' '.join(shlex.quote(str(x)) for x in args)}") subprocess.check_call(args, stderr=subprocess.STDOUT, cwd=cwd) def main(args: List[str]) -> int: #pylint: disable=C0116