be less verbose

This commit is contained in:
Cat /dev/Nulo 2023-06-19 19:02:00 -03:00
parent e8658c6201
commit f480b54259
2 changed files with 3 additions and 5 deletions

View file

@ -1,7 +1,6 @@
import { execFile as _execFile } from "node:child_process"; import { execFile as _execFile } from "node:child_process";
import { access, mkdir, rm } from "node:fs/promises"; import { access, mkdir } from "node:fs/promises";
import { join } from "node:path"; import { join } from "node:path";
import { promisify } from "node:util";
import { tar2squashfs } from "./tar2squashfs.js"; import { tar2squashfs } from "./tar2squashfs.js";
import { subtle } from "node:crypto"; import { subtle } from "node:crypto";
@ -36,7 +35,7 @@ async function downloadContainer(image: string, tag: string) {
console.debug(manifest); console.debug(manifest);
await saveSquashfs(image, manifest); await saveSquashfs(image, manifest);
const configPath = await jsonBlob(image, manifest.config.digest); const config = await jsonBlob(image, manifest.config.digest);
} }
// https://stackoverflow.com/a/67600346 // https://stackoverflow.com/a/67600346

View file

@ -38,7 +38,7 @@ export async function tar2squashfs(streams, output) {
...["-Xcompression-level", "3"], ...["-Xcompression-level", "3"],
], ],
{ {
stdio: ["pipe", "inherit", "inherit"], stdio: "pipe",
} }
); );
@ -61,7 +61,6 @@ export async function tar2squashfs(streams, output) {
}) })
); );
} }
console.debug("finalizing");
p.finalize(); p.finalize();
await new Promise((resolve, reject) => await new Promise((resolve, reject) =>