From b4101d46f002276042dfbebfd0192526a7467ee3 Mon Sep 17 00:00:00 2001 From: Adonis Ling Date: Fri, 19 Aug 2022 21:28:52 +0800 Subject: [PATCH] [fix](workflow) Fix the errors when using sh to run shell scripts (#11898) --- build-support/shell-check.sh | 1 + run-be-ut.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/build-support/shell-check.sh b/build-support/shell-check.sh index 6f5327f9f6b150..604cc7c8ec3fe1 100755 --- a/build-support/shell-check.sh +++ b/build-support/shell-check.sh @@ -19,6 +19,7 @@ # under the License. set -eo pipefail +set +o posix SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" DORIS_HOME="$( diff --git a/run-be-ut.sh b/run-be-ut.sh index 4e5391a3fce01f..fc11e0ef2da7b3 100755 --- a/run-be-ut.sh +++ b/run-be-ut.sh @@ -33,6 +33,7 @@ ##################################################################### set -eo pipefail +set +o posix ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"