Skip to content

Commit 1960b0c

Browse files
authored
Merge pull request #1942 from NativeScript/add-plugin
return false if plugin is already installed
2 parents 7fa21ef + d149c10 commit 1960b0c

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)