diff --git a/core/src/main/java/org/elasticsearch/plugins/InstallPluginCommand.java b/core/src/main/java/org/elasticsearch/plugins/InstallPluginCommand.java index aa224b3c7c3..643998f19c2 100644 --- a/core/src/main/java/org/elasticsearch/plugins/InstallPluginCommand.java +++ b/core/src/main/java/org/elasticsearch/plugins/InstallPluginCommand.java @@ -237,7 +237,7 @@ class InstallPluginCommand extends SettingCommand { } // fall back to plain old URL - if (pluginId.contains("://") == false) { + if (pluginId.contains(":/") == false) { // definitely not a valid url, so assume it is a plugin name throw new UserError(ExitCodes.USAGE, "Unknown plugin " + pluginId); }