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 | 8921a3d1704355182309aadf82d371f8d90b6b58 (patch) | |
tree | 7a2e0564a3e3309e219abb0487fd3d31705249e6 /commands | |
parent | b3889a58674be40a1e7bdb441ef8304f44736f75 (diff) |
filter git changed
Diffstat (limited to 'commands')
-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 b3fcad7..2980618 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); |