mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 04:57:48 +01:00
use execSync instead of exec
This commit is contained in:
parent
63ac519d60
commit
2a59d97d62
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ app.use("/sb/i/:v/:imagePath/:img", async function (req, res) {
|
||||||
const totalMemory = os.totalmem() / (1024 * 1024 * 1024);
|
const totalMemory = os.totalmem() / (1024 * 1024 * 1024);
|
||||||
const roundedMemory = totalMemory.toFixed(2);
|
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) {
|
if (error || stderr) {
|
||||||
console.error(`Error executing command: ${error || stderr}`);
|
console.error(`Error executing command: ${error || stderr}`);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue