From cb503e5ef5712c804a1f7e7c88c78d2094f53797 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 9 Feb 2022 16:53:46 +1100 Subject: [PATCH] CI: shell escape echoed output during Windows build Makes it slightly easier to copy and paste these commands if necessary. --- ci/build_windows.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.40.0