Skip to content

Commit

Permalink
Update sudokill.js
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Jan 2, 2024
1 parent f5753f4 commit 6fc2b75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sudokill.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ const ignoreUsers = opts.ignore.split(',')
if (existsSync(__dirname + '/.killignore')) {
Object.assign(ignoreUsers, readFileSync(__dirname + '/.killignore', {
encoding: 'utf-8'
}).split('\n').map(x => x.trim()).filter(x => x))
}).split('\n').map(x => x.trim()).filter(x => x).reduce((acc, cur) => {
acc[cur] = true;
return acc;
}, {}))
}

ignoreUsers.root = true;
Expand Down

0 comments on commit 6fc2b75

Please sign in to comment.