Skip to content

Commit

Permalink
Merge pull request #17 from jokesterfr/master
Browse files Browse the repository at this point in the history
Fix deleting remaining ./tmp directory
  • Loading branch information
jed committed Jun 29, 2014
2 parents 191cadf + ee99241 commit 9d353cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/crx.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var fs = require("fs")
, join = require("path").join
, path = require("path")
, join = path.join
, sep = require("path").sep
, crypto = require("crypto")
, child = require("child_process")
Expand All @@ -22,7 +23,7 @@ module.exports = new function() {
ChromeExtension.prototype = this

this.destroy = function() {
wrench.rmdirSyncRecursive(this.path)
wrench.rmdirSyncRecursive(path.dirname(this.path))
}

this.pack = function(cb) {
Expand Down

0 comments on commit 9d353cf

Please sign in to comment.