From e5deb0c4a6c6fdb45a6687b09b63746f7fa5818d Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Fri, 10 Jan 2025 15:38:54 +0100 Subject: [PATCH] Make execution run silently --- utils/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/commands.ts b/utils/commands.ts index 7cfb2ba..c08d70e 100644 --- a/utils/commands.ts +++ b/utils/commands.ts @@ -511,7 +511,7 @@ export async function updatePostStatus(id: number, status: string): Promise { const cwd = configurations.rootDir; const command = wrapPrefix(`sudo cat ${path}`); - const result = exec(command, { cwd: cwd, async: false }); + const result = exec(command, { cwd: cwd, async: false, silent: true }); if (result.code !== 0) { return '';