8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06f2592 commit af1b147Copy full SHA for af1b147
lib/commands/plugin.js
@@ -45,8 +45,7 @@ cmd.handler = function(argv) {
45
});
46
if (!f) return log.error('Plugin not found!');
47
48
- var fullpath = path.resolve(__dirname, '../plugins/' + f.name + '.js');
49
- fs.unlink(fullpath, function(e) {
+ fs.unlink(f.fullpath, function(e) {
50
if (e) log.error(e.message);
51
52
return;
lib/helper.js
@@ -157,7 +157,7 @@ h.getDirData = function(paths) {
157
default:
158
break;
159
}
160
- return {name: name, data: data};
+ return {name: name, data: data, fullpath: fullpath};
161
162
};
163
0 commit comments