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 {