From 967bdc653109896112816a2a7529899ef3424a66 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Tue, 16 Sep 2025 21:20:18 -0700 Subject: [PATCH] ok --- scripts/generate-hosts.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/generate-hosts.ts b/scripts/generate-hosts.ts index 16cee7b..e52fe1f 100644 --- a/scripts/generate-hosts.ts +++ b/scripts/generate-hosts.ts @@ -1,9 +1,9 @@ import { $ } from "bun" import { apps } from "../src/webapp" -const ip = await $`hostname -I | awk '{print $1}'`.quiet() -const host = await $`hostname`.quiet() +const { stdout: ip } = await $`hostname -I | awk '{print $1}'`.quiet() +const { stdout: host } = await $`hostname`.quiet() -const hosts = apps().map(app => `${ip} ${app}.${host}.local`) +const hosts = apps().map(app => `${ip} ${app}.${host.toString().trim()}.local`) console.log(hosts.join("\n")) \ No newline at end of file