From f480b542595f2a2c66ff4bf5d65a256e20877963 Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 19 Jun 2023 19:02:00 -0300 Subject: [PATCH] be less verbose --- js/container-baby.ts | 5 ++--- js/tar2squashfs.js | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/js/container-baby.ts b/js/container-baby.ts index 1a78706..85b0c7f 100644 --- a/js/container-baby.ts +++ b/js/container-baby.ts @@ -1,7 +1,6 @@ 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 { promisify } from "node:util"; import { tar2squashfs } from "./tar2squashfs.js"; import { subtle } from "node:crypto"; @@ -36,7 +35,7 @@ async function downloadContainer(image: string, tag: string) { console.debug(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 diff --git a/js/tar2squashfs.js b/js/tar2squashfs.js index 14c96bb..d7fd24d 100644 --- a/js/tar2squashfs.js +++ b/js/tar2squashfs.js @@ -38,7 +38,7 @@ export async function tar2squashfs(streams, output) { ...["-Xcompression-level", "3"], ], { - stdio: ["pipe", "inherit", "inherit"], + stdio: "pipe", } ); @@ -61,7 +61,6 @@ export async function tar2squashfs(streams, output) { }) ); } - console.debug("finalizing"); p.finalize(); await new Promise((resolve, reject) =>