From b357bcfd6b69c94ca6a515356995d297f8ef3e11 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 22 Apr 2024 16:06:33 +0200 Subject: [PATCH] Correctly strip newline (on Windows) --- .github/scripts/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/common.py b/.github/scripts/common.py index ef8efcd..47d719b 100644 --- a/.github/scripts/common.py +++ b/.github/scripts/common.py @@ -28,7 +28,7 @@ def get_build_dir(config) -> Path: command.append("--use-target-arch-name") return Path( subprocess.run(command, cwd=str(HOME), check=True, stdout=subprocess.PIPE) - .stdout[:-1] + .stdout.strip() .decode("utf8") )