This is an automated email from the ASF dual-hosted git repository. szetszwo pushed a commit to branch branch-2_tmp in repository https://gitbox.apache.org/repos/asf/ratis.git
commit fc7b112ad03b222529734d0bddfaea1cba886382 Author: Chris Nauroth <[email protected]> AuthorDate: Mon Oct 31 15:01:08 2022 -0700 RATIS-1340. Discovery of Bash source path is incompatible with CDPATH. (#772) (cherry picked from commit e87e16dd25865239edf8e50478539357b779519f) --- ratis-examples/src/main/bin/client.sh | 2 +- ratis-examples/src/main/bin/common.sh | 2 +- ratis-examples/src/main/bin/server.sh | 2 +- ratis-examples/src/main/bin/start-all.sh | 2 +- ratis-experiments/scripts/flatbuf-compile.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ratis-examples/src/main/bin/client.sh b/ratis-examples/src/main/bin/client.sh index e3cdfcddd..e42786fa3 100755 --- a/ratis-examples/src/main/bin/client.sh +++ b/ratis-examples/src/main/bin/client.sh @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" USAGE="client.sh <example> <command>" diff --git a/ratis-examples/src/main/bin/common.sh b/ratis-examples/src/main/bin/common.sh index 76176a403..b05bf4dbf 100755 --- a/ratis-examples/src/main/bin/common.sh +++ b/ratis-examples/src/main/bin/common.sh @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" LIB_DIR=${SCRIPT_DIR}/../lib diff --git a/ratis-examples/src/main/bin/server.sh b/ratis-examples/src/main/bin/server.sh index faf63b285..3cc069edf 100755 --- a/ratis-examples/src/main/bin/server.sh +++ b/ratis-examples/src/main/bin/server.sh @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" source $DIR/common.sh java ${LOGGER_OPTS} -jar $ARTIFACT "$@" diff --git a/ratis-examples/src/main/bin/start-all.sh b/ratis-examples/src/main/bin/start-all.sh index 82a87598b..f5297407b 100755 --- a/ratis-examples/src/main/bin/start-all.sh +++ b/ratis-examples/src/main/bin/start-all.sh @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" USAGE="start-all.sh <example> <subcommand>" diff --git a/ratis-experiments/scripts/flatbuf-compile.sh b/ratis-experiments/scripts/flatbuf-compile.sh index bb84939bb..8281be32c 100644 --- a/ratis-experiments/scripts/flatbuf-compile.sh +++ b/ratis-experiments/scripts/flatbuf-compile.sh @@ -16,7 +16,7 @@ set -eu -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" DOCDIR="$DIR/.." if [ "$(which flatc)" ]; then
