diff options
author | ame <[email protected]> | 2023-10-31 22:51:14 -0500 |
---|---|---|
committer | ame <[email protected]> | 2023-10-31 22:51:14 -0500 |
commit | b3e4cf36f2fad8148563e7200fbd5d1f977e7186 (patch) | |
tree | e390b2320c6343776c85102aeb725c5a3a0e1cb8 | |
parent | f4e8985ca9aa8c370314566bc46a9e7786b931c5 (diff) |
filter git changed
-rw-r--r-- | commands/util/status.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); |