From 2a59d97d62463e03bdadd2661dc90b9e166415ad Mon Sep 17 00:00:00 2001 From: ashley Date: Wed, 3 Jul 2024 20:52:22 +0000 Subject: [PATCH] use execSync instead of exec --- src/libpoketube/init/pages-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpoketube/init/pages-api.js b/src/libpoketube/init/pages-api.js index 20b43514..b23b0f4d 100644 --- a/src/libpoketube/init/pages-api.js +++ b/src/libpoketube/init/pages-api.js @@ -235,7 +235,7 @@ app.use("/sb/i/:v/:imagePath/:img", async function (req, res) { const totalMemory = os.totalmem() / (1024 * 1024 * 1024); const roundedMemory = totalMemory.toFixed(2); -exec('git rev-list HEAD -n 1 --abbrev-commit', (error, stdout, stderr) => { +execSync('git rev-list HEAD -n 1 --abbrev-commit', (error, stdout, stderr) => { if (error || stderr) { console.error(`Error executing command: ${error || stderr}`); return;