From 0fd14e8c3c99433f786518e40b9e47b86c09ad2b Mon Sep 17 00:00:00 2001 From: Sven R Date: Tue, 3 Aug 2021 15:10:30 +0200 Subject: [PATCH] alt bash path support (#1013) Signed-off-by: hackacad --- distribution/src/bin/opensearch | 2 +- distribution/src/bin/opensearch-cli | 2 +- distribution/src/bin/opensearch-env | 2 +- distribution/src/bin/opensearch-env-from-file | 2 +- distribution/src/bin/opensearch-keystore | 2 +- distribution/src/bin/opensearch-node | 2 +- distribution/src/bin/opensearch-plugin | 2 +- distribution/src/bin/opensearch-shard | 2 +- distribution/src/bin/opensearch-upgrade | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/distribution/src/bin/opensearch b/distribution/src/bin/opensearch index 13fc05a03eb..52087ceb8bc 100755 --- a/distribution/src/bin/opensearch +++ b/distribution/src/bin/opensearch @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # CONTROLLING STARTUP: # diff --git a/distribution/src/bin/opensearch-cli b/distribution/src/bin/opensearch-cli index a1be40349d4..19f5d3e46d6 100644 --- a/distribution/src/bin/opensearch-cli +++ b/distribution/src/bin/opensearch-cli @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/distribution/src/bin/opensearch-env b/distribution/src/bin/opensearch-env index debf0596d2c..8817cd18234 100644 --- a/distribution/src/bin/opensearch-env +++ b/distribution/src/bin/opensearch-env @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/distribution/src/bin/opensearch-env-from-file b/distribution/src/bin/opensearch-env-from-file index b59aba9cfde..73cd11123bf 100644 --- a/distribution/src/bin/opensearch-env-from-file +++ b/distribution/src/bin/opensearch-env-from-file @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/distribution/src/bin/opensearch-keystore b/distribution/src/bin/opensearch-keystore index 0d175f168e7..794d3eb5eba 100755 --- a/distribution/src/bin/opensearch-keystore +++ b/distribution/src/bin/opensearch-keystore @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash OPENSEARCH_MAIN_CLASS=org.opensearch.common.settings.KeyStoreCli \ OPENSEARCH_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/keystore-cli \ diff --git a/distribution/src/bin/opensearch-node b/distribution/src/bin/opensearch-node index 011cdc9ecb9..210037e933b 100755 --- a/distribution/src/bin/opensearch-node +++ b/distribution/src/bin/opensearch-node @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash OPENSEARCH_MAIN_CLASS=org.opensearch.cluster.coordination.NodeToolCli \ "`dirname "$0"`"/opensearch-cli \ diff --git a/distribution/src/bin/opensearch-plugin b/distribution/src/bin/opensearch-plugin index a24a841a9b0..64d14e611fd 100755 --- a/distribution/src/bin/opensearch-plugin +++ b/distribution/src/bin/opensearch-plugin @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash OPENSEARCH_MAIN_CLASS=org.opensearch.plugins.PluginCli \ OPENSEARCH_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/plugin-cli \ diff --git a/distribution/src/bin/opensearch-shard b/distribution/src/bin/opensearch-shard index b6c9778ee1f..59511ee6864 100755 --- a/distribution/src/bin/opensearch-shard +++ b/distribution/src/bin/opensearch-shard @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash OPENSEARCH_MAIN_CLASS=org.opensearch.index.shard.ShardToolCli \ "`dirname "$0"`"/opensearch-cli \ diff --git a/distribution/src/bin/opensearch-upgrade b/distribution/src/bin/opensearch-upgrade index d271f9b5014..4305fae4627 100755 --- a/distribution/src/bin/opensearch-upgrade +++ b/distribution/src/bin/opensearch-upgrade @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash OPENSEARCH_MAIN_CLASS=org.opensearch.upgrade.UpgradeCli \ OPENSEARCH_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/upgrade-cli \