Skip to content

Commit

Permalink
Change -o pipefail to -e
Browse files Browse the repository at this point in the history
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
  • Loading branch information
owaiskazi19 committed May 11, 2022
1 parent 10fad09 commit c285109
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# when we do rebuild the files they don't jump around too much. That
# way the diffs are smaller.

set -e -o pipefail
set -e

script_path="$( cd "$(dirname "$0")" ; pwd -P )"
work=$(mktemp -d)
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/atomic_push.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e -o pipefail
set -e

if [ "$#" -eq 0 ]; then
printf 'Usage: %s <origin> <branch> <branch> ...\n' "$(basename "$0")"
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/signoff-check.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

set -e -o pipefail
set -e

### Script to check for signoff presents on commits

Expand Down
2 changes: 1 addition & 1 deletion distribution/docker/docker-test-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e -o pipefail
set -e

cd /usr/share/opensearch/bin/

Expand Down
2 changes: 1 addition & 1 deletion distribution/docker/src/docker/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e -o pipefail
set -e

# Files created by Elasticsearch should always be group writable too
umask 0002
Expand Down
2 changes: 1 addition & 1 deletion distribution/packages/src/common/scripts/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# $1=1 : indicates an new install
# $1=2 : indicates an upgrade

set -e -o pipefail
set -e

err_exit() {
echo "$@" >&2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This wrapper script allows SystemD to feed a file containing a passphrase into
# the main OpenSearch startup script

set -e -o pipefail
set -e

if [ -n "$OPENSEARCH_KEYSTORE_PASSPHRASE_FILE" ] ; then
exec /usr/share/opensearch/bin/opensearch "$@" < "$OPENSEARCH_KEYSTORE_PASSPHRASE_FILE"
Expand Down
2 changes: 1 addition & 1 deletion distribution/packages/src/deb/init.d/opensearch
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Description: Starts opensearch using start-stop-daemon
### END INIT INFO

set -e -o pipefail
set -e

PATH=/bin:/usr/bin:/sbin:/usr/sbin
NAME=opensearch
Expand Down
2 changes: 1 addition & 1 deletion distribution/packages/src/rpm/init.d/opensearch
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Description: OpenSearch is a very scalable, schema-free and high-performance search solution supporting multi-tenancy and near realtime search.
### END INIT INFO

set -e -o pipefail
set -e

#
# init.d / servicectl compatibility (openSUSE)
Expand Down
2 changes: 1 addition & 1 deletion distribution/src/bin/opensearch
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#
# OPENSEARCH_JAVA_OPTS="-Xms8g -Xmx8g" ./bin/opensearch

set -e -o pipefail
set -e

source "`dirname "$0"`"/opensearch-env

Expand Down
2 changes: 1 addition & 1 deletion distribution/src/bin/opensearch-cli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e -o pipefail
set -e

source "`dirname "$0"`"/opensearch-env

Expand Down
2 changes: 1 addition & 1 deletion distribution/src/bin/opensearch-env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e -o pipefail
set -e

CDPATH=""

Expand Down
2 changes: 1 addition & 1 deletion distribution/src/bin/opensearch-env-from-file
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e -o pipefail
set -e

# Allow environment variables to be set by creating a file with the
# contents, and setting an environment variable with the suffix _FILE to
Expand Down
2 changes: 1 addition & 1 deletion distribution/src/bin/opensearch-keystore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e -o pipefail
set -e

OPENSEARCH_MAIN_CLASS=org.opensearch.common.settings.KeyStoreCli \
OPENSEARCH_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/keystore-cli \
Expand Down
2 changes: 1 addition & 1 deletion distribution/src/bin/opensearch-node
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e -o pipefail
set -e

OPENSEARCH_MAIN_CLASS=org.opensearch.cluster.coordination.NodeToolCli \
"`dirname "$0"`"/opensearch-cli \
Expand Down
2 changes: 1 addition & 1 deletion distribution/src/bin/opensearch-plugin
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e -o pipefail
set -e

OPENSEARCH_MAIN_CLASS=org.opensearch.plugins.PluginCli \
OPENSEARCH_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/plugin-cli \
Expand Down
2 changes: 1 addition & 1 deletion distribution/src/bin/opensearch-shard
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e -o pipefail
set -e

OPENSEARCH_MAIN_CLASS=org.opensearch.index.shard.ShardToolCli \
"`dirname "$0"`"/opensearch-cli \
Expand Down
2 changes: 1 addition & 1 deletion distribution/src/bin/opensearch-upgrade
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e -o pipefail
set -e

OPENSEARCH_MAIN_CLASS=org.opensearch.upgrade.UpgradeCli \
OPENSEARCH_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/upgrade-cli \
Expand Down
2 changes: 1 addition & 1 deletion qa/remote-clusters/docker-test-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e -o pipefail
set -e

cd /usr/share/opensearch/bin/
./opensearch-users useradd rest_user -p test-password -r superuser || true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

set -e -o pipefail
set -e

krb5kdc
kadmind
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# GitHub history for details.
#

set -e -o pipefail
set -e

addprinc.sh "opensearch"
#TODO(OpenSearch): fix username
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# GitHub history for details.
#

set -e -o pipefail
set -e

# KDC installation steps and considerations based on https://web.mit.edu/kerberos/krb5-latest/doc/admin/install_kdc.html
# and helpful input from https://help.ubuntu.com/community/Kerberos
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e -o pipefail
set -e

addprinc.sh opensearch
addprinc.sh HTTP/localhost
Expand Down

0 comments on commit c285109

Please sign in to comment.