From 886e42a98b08b98e0da1e03078e0feffdfd0ba2b Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Fri, 17 May 2024 15:23:24 +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 debcaab..240efdc 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") )