Skip to content

Commit

Permalink
Merge pull request #280 from distracteddev/patch-1
Browse files Browse the repository at this point in the history
Disable rimraf globbing
  • Loading branch information
jprichardson committed Sep 29, 2016
2 parents da50fb6 + 1f49d10 commit aec5548
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/remove/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
var rimraf = require('rimraf')

function removeSync (dir) {
return rimraf.sync(dir)
return rimraf.sync(dir, {disableGlob: true})
}

function remove (dir, callback) {
return callback ? rimraf(dir, callback) : rimraf(dir, function () {})
var options = {disableGlob: true}
return callback ? rimraf(dir, options, callback) : rimraf(dir, options, function () {})
}

module.exports = {
Expand Down

0 comments on commit aec5548

Please sign in to comment.