From fc0a19c45d3bb5c9adc979c2db7b8548fdc7dfde Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Wed, 24 Sep 2025 21:14:02 -0700 Subject: [PATCH] update update --- app/nose/bin/update.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/nose/bin/update.ts b/app/nose/bin/update.ts index 1143226..1ef1f81 100644 --- a/app/nose/bin/update.ts +++ b/app/nose/bin/update.ts @@ -1,8 +1,13 @@ import { $ } from "bun" export default async function () { + if (process.env.NODE_ENV !== "production") { + return { error: "Can only update in production." } + } + const { stdout } = await $`cd .. && git pull`.quiet() const out = stdout.toString() + if (/up to date/.test(out)) { return "Up to date." } else {