mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 16:57:58 +01:00
test commit ignore pls
This commit is contained in:
parent
fd26924324
commit
62d7def602
1 changed files with 8 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue