From ca881272be8522c57c709fd6af4c735d07e08895 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 25 Nov 2024 11:45:07 +0000 Subject: [PATCH] fix(lib): forward pwsh stdout on windows debug --- toolchainlib/src/compression.luau | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/toolchainlib/src/compression.luau b/toolchainlib/src/compression.luau index 503cd5c..f0d9327 100644 --- a/toolchainlib/src/compression.luau +++ b/toolchainlib/src/compression.luau @@ -67,7 +67,12 @@ local decompress: { [CompressionFormat]: (compressed: buffer) -> Result, + -- Powershell on Windows writes errors to stdout. Bruh + stdout = Option.Some( + if process.os == "windows" and process.env.PESDE_LOG == "debug" + then "forward" + else "pipe" :: CommandBuilder.StdioStrategy + ) :: Option, stderr = Option.Some( if process.env.PESDE_LOG == "debug" then "forward"