mirror of
https://github.com/pesde-pkg/tooling.git
synced 2025-04-19 19:33:56 +01:00
fix(lib): don't panic on bad descriptor for binary
This commit is contained in:
parent
039b4619a4
commit
97cc64bc81
1 changed files with 2 additions and 2 deletions
|
@ -157,9 +157,9 @@ function installTool(tool: ToolId, installPath: pathfs.Path)
|
||||||
local path = decompressedPath:unwrap()
|
local path = decompressedPath:unwrap()
|
||||||
for _, file in pathfs.readDir(path) do
|
for _, file in pathfs.readDir(path) do
|
||||||
local filePath = path:join(file)
|
local filePath = path:join(file)
|
||||||
local nativeDesc = PlatformDescriptor.fromExecutable(filePath:toString()):unwrap()
|
local nativeDesc = PlatformDescriptor.fromExecutable(filePath:toString())
|
||||||
|
|
||||||
if eq(currentDesc, nativeDesc) then
|
if nativeDesc:isOk() and eq(currentDesc, nativeDesc:unwrap()) then
|
||||||
binaryPath = filePath
|
binaryPath = filePath
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue