mirror of
https://github.com/morluto/rea.git
synced 2026-10-30 11:25:39 +00:00
fix(native): harden command capture edge cases
This commit is contained in:
1 parent
446a1e5799
commit
d39f98d06d
4 files changed
+95
-9
No files matched your search
@@ -199,10 +199,11 @@ class NativeMacOSClient implements AnalysisClient {
|
||||
);
|
||||
if (!capture.ok) return capture;
|
||||
const provenance = [invocation(capture.value, this.target.path)];
|
||||
const architectures = parseLipoArchitectures(capture.value.stdout);
|
||||
const result = listArchitecturesSchema.parse({
|
||||
architectures: {
|
||||
items: parseLipoArchitectures(capture.value.stdout),
|
||||
total: parseLipoArchitectures(capture.value.stdout).length,
|
||||
items: architectures,
|
||||
total: architectures.length,
|
||||
exhaustive: true,
|
||||
limitations: [],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user