Skip to content
Permalink
Browse files
HOP-3935: fix passing of exit code
  • Loading branch information
hansva committed May 12, 2022
1 parent a197adf commit fe44fa99c8a653259d8e40e8bef4d08f046aaca6
Showing 1 changed file with 3 additions and 3 deletions.
@@ -16,7 +16,7 @@
# limitations under the License.
#

set -Eeuo pipefail
set -Euo pipefail

log() {
# shellcheck disable=SC2046
@@ -205,7 +205,7 @@ if [ -z "${HOP_FILE_PATH}" ]; then
/tmp/hop-server.xml \
2>&1 | tee ${HOP_LOG_PATH}

exitWithCode $?
exitWithCode "${PIPESTATUS[0]}"
else

if [ -z "${HOP_RUN_CONFIG}" ]; then
@@ -221,5 +221,5 @@ else
${HOP_EXEC_OPTIONS} \
2>&1 | tee "${HOP_LOG_PATH}"

exitWithCode $?
exitWithCode "${PIPESTATUS[0]}"
fi

0 comments on commit fe44fa9

Please sign in to comment.