You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by ad...@apache.org on 2022/10/31 22:01:14 UTC

[ratis] branch master updated: RATIS-1340. Discovery of Bash source path is incompatible with CDPATH. (#772)

This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git


The following commit(s) were added to refs/heads/master by this push:
     new e87e16dd2 RATIS-1340. Discovery of Bash source path is incompatible with CDPATH. (#772)
e87e16dd2 is described below

commit e87e16dd25865239edf8e50478539357b779519f
Author: Chris Nauroth <cn...@apache.org>
AuthorDate: Mon Oct 31 15:01:08 2022 -0700

    RATIS-1340. Discovery of Bash source path is incompatible with CDPATH. (#772)
---
 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