MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / listTarEntries

Function listTarEntries

scripts/verify-native-pack.mjs:66–77  ·  view source on GitHub ↗
(tgzPath)

Source from the content-addressed store, hash-verified

64}
65
66function listTarEntries(tgzPath) {
67 try {
68 const out = execFileSync("tar", ["-tf", tgzPath], { encoding: "utf8" });
69 return out
70 .split("\n")
71 .map((l) => l.trim())
72 .filter((l) => l.length > 0);
73 } catch (err) {
74 const detail = err instanceof Error ? err.message : String(err);
75 die(`verify-native-pack: failed to list tar entries via 'tar -tf'.\n${detail}`);
76 }
77}
78
79function run(cmd, args, cwd) {
80 const res = spawnSync(cmd, args, {

Callers 1

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected