diff --git a/distribution/src/bin/opensearch-plugin b/distribution/src/bin/opensearch-plugin index b58a2695d2ecf..ed122e2184bec 100755 --- a/distribution/src/bin/opensearch-plugin +++ b/distribution/src/bin/opensearch-plugin @@ -4,5 +4,4 @@ set -e -o pipefail OPENSEARCH_MAIN_CLASS=org.opensearch.plugins.PluginCli \ OPENSEARCH_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/plugin-cli \ - "`dirname "$0"`"/opensearch-cli \ - "$@" + ./opensearch-cli "$@"