From b3e4cf36f2fad8148563e7200fbd5d1f977e7186 Mon Sep 17 00:00:00 2001 From: ame Date: Tue, 31 Oct 2023 22:51:14 -0500 Subject: filter git changed --- commands/util/status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/util/status.js b/commands/util/status.js index 8f8fc16..1d603e4 100644 --- a/commands/util/status.js +++ b/commands/util/status.js @@ -23,7 +23,7 @@ module.exports = { }, async exec(client,message){ getLastCommit(async (err,commit)=>{ - let changed = execSync('git --no-pager diff --minimal --name-only').toString().split('\n') + let changed = execSync('git --no-pager diff --minimal --name-only').toString().split('\n').filter((s) => s!='') let seconds = Math.floor(message.client.uptime / 1000); let minutes = Math.floor(seconds / 60); let hours = Math.floor(minutes / 60); -- cgit v1.2.3