Skip to content

Commit d149c10

Browse files
committed
return false if plugin is already installed
1 parent 7fa21ef commit d149c10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/commands/plugin/add-plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class AddPluginCommand implements ICommand {
1616
let pluginName = args[0].toLowerCase();
1717
if(_.some(installedPlugins, (plugin: IPluginData) => plugin.name.toLowerCase() === pluginName)) {
1818
this.$errors.failWithoutHelp(`Plugin "${pluginName}" is already installed.`);
19+
return false;
1920
}
2021

2122
return true;

0 commit comments

Comments
 (0)