From 62d7def602c090f9196d700cab0d9eee389f8e83 Mon Sep 17 00:00:00 2001 From: ashley Date: Thu, 9 May 2024 15:03:50 +0000 Subject: [PATCH] test commit ignore pls --- src/libpoketube/init/pages-api.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/libpoketube/init/pages-api.js b/src/libpoketube/init/pages-api.js index d7e73a1c..94b4b3c9 100644 --- a/src/libpoketube/init/pages-api.js +++ b/src/libpoketube/init/pages-api.js @@ -223,7 +223,14 @@ 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) => latestCommitHash = error || stderr ? console.error(`Error executing command: ${error || stderr}`) : stdout.trim()); +exec('git rev-list HEAD -n 1 --abbrev-commit', (error, stdout, stderr) => { + if (error || stderr) { + console.error(`Error executing command: ${error || stderr}`); + return; + } + + latestCommitHash = stdout.trim(); + }); const response = { pt_version: {