mirror of
https://github.com/pesde-pkg/tooling.git
synced 2025-04-19 19:33:56 +01:00
fix(lib): only attempt to clear current progress bar if interactive
This commit is contained in:
parent
f99a4f787d
commit
c85c895408
1 changed files with 6 additions and 1 deletions
|
@ -279,7 +279,12 @@ function installTool(tool: ToolId, installPath: pathfs.Path): number
|
||||||
|
|
||||||
local binaryContents: buffer
|
local binaryContents: buffer
|
||||||
if matchingAsset == nil then
|
if matchingAsset == nil then
|
||||||
|
if _G.interactive then
|
||||||
|
-- Clear the current progress bar line
|
||||||
stdio.write("\x1b[2K\x1b[0G")
|
stdio.write("\x1b[2K\x1b[0G")
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Output warnings
|
||||||
warn("Pesde could not find a matching binary for your system")
|
warn("Pesde could not find a matching binary for your system")
|
||||||
warn("Will now attempt to download all binaries and find a matching one")
|
warn("Will now attempt to download all binaries and find a matching one")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue