From c85c89540888881edd105d51b4b200257574437c Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Wed, 22 Jan 2025 12:11:53 +0530 Subject: [PATCH] fix(lib): only attempt to clear current progress bar if interactive --- toolchainlib/src/init.luau | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/toolchainlib/src/init.luau b/toolchainlib/src/init.luau index 97ad21b..fa7d5b7 100644 --- a/toolchainlib/src/init.luau +++ b/toolchainlib/src/init.luau @@ -279,7 +279,12 @@ function installTool(tool: ToolId, installPath: pathfs.Path): number local binaryContents: buffer if matchingAsset == nil then - stdio.write("\x1b[2K\x1b[0G") + if _G.interactive then + -- Clear the current progress bar line + stdio.write("\x1b[2K\x1b[0G") + end + + -- Output warnings warn("Pesde could not find a matching binary for your system") warn("Will now attempt to download all binaries and find a matching one")