From ee9924142c32aa309e297e381e3aec59e5dc3f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20D=C3=A9siles?= Date: Sun, 29 Jun 2014 22:39:09 +0200 Subject: [PATCH] Fix deleting remaining ./tmp directory --- src/crx.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/crx.js b/src/crx.js index 5ffdf06..b56bd6c 100644 --- a/src/crx.js +++ b/src/crx.js @@ -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") @@ -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) {