Skip to content

Commit

Permalink
Fixed empty .dorkyignore file bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
trishantpahwa committed Jan 22, 2022
1 parent 1c1486c commit e601f46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function initializeProject() {
}

function listFiles() {
const exclusions = fs.readFileSync('./.dorkyignore').toString().split(EOL);
let exclusions = fs.readFileSync('./.dorkyignore').toString().split(EOL);
if(exclusions[0] == '') exclusions = [];
var getDirectories = function (src, callback) {
glob(src + '/**/*', callback);
};
Expand Down

0 comments on commit e601f46

Please sign in to comment.