Skip to content

Commit 4f76fa2

Browse files
committed
Don't use batch when installing plugins
1 parent f2c9f4c commit 4f76fa2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Tests/Framework/ManagedElasticsearch/Tasks/InstallationTasks/InstallPlugins.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ from plugin in ElasticsearchPluginCollection.Supported
2626
foreach (var plugin in plugins)
2727
{
2828
var installParameter = !v.IsSnapshot ? plugin.Moniker : this.DownloadSnapshotIfNeeded(fileSystem, plugin, v);
29-
this.ExecuteBinary(fileSystem.PluginBinary, $"install elasticsearch plugin: {plugin.Moniker}", "install --batch", installParameter);
29+
var installCommand = v.Major >= 5 ? "install --batch" : "install";
30+
this.ExecuteBinary(fileSystem.PluginBinary, $"install elasticsearch plugin: {plugin.Moniker}", installCommand, installParameter);
3031
}
3132
}
3233

0 commit comments

Comments
 (0)