You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by ab...@apache.org on 2021/12/06 08:11:43 UTC

[druid] branch master updated: Replace source call to make scripts more portable (#12014)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 590cf99  Replace source call to make scripts more portable (#12014)
590cf99 is described below

commit 590cf993c0e9e9286008978e1ab282518d8dc78c
Author: Michka Popoff <mi...@gmail.com>
AuthorDate: Mon Dec 6 09:11:25 2021 +0100

    Replace source call to make scripts more portable (#12014)
    
    Fixes #10744
    
    Fixes:
    ./bin/node.sh: 44: ./bin/node.sh: source: not found
    Could not find java - please run /opt/druid/apache-druid-0.20.0/bin/verify-java to confirm it is installed.
---
 examples/bin/jconsole.sh | 2 +-
 examples/bin/node.sh     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/bin/jconsole.sh b/examples/bin/jconsole.sh
index f3420ad..b14a2aa 100755
--- a/examples/bin/jconsole.sh
+++ b/examples/bin/jconsole.sh
@@ -45,7 +45,7 @@ wait
 
 WHEREAMI="$(dirname "$0")"
 WHEREAMI="$(cd "$WHEREAMI" && pwd)"
-JAVA_BIN_DIR="$(source "$WHEREAMI"/java-util && get_java_bin_dir)"
+JAVA_BIN_DIR="$(. /"$WHEREAMI"/java-util && get_java_bin_dir)"
 if [ -z "$JAVA_BIN_DIR" ]; then
   >&2 echo "Could not find java - please run $WHEREAMI/verify-java to confirm it is installed."
   exit 1
diff --git a/examples/bin/node.sh b/examples/bin/node.sh
index db51ba7..afa0eb0 100644
--- a/examples/bin/node.sh
+++ b/examples/bin/node.sh
@@ -40,7 +40,7 @@ CONF_DIR="${DRUID_CONF_DIR:=conf/druid}"
 PID_DIR="${DRUID_PID_DIR:=var/druid/pids}"
 WHEREAMI="$(dirname "$0")"
 WHEREAMI="$(cd "$WHEREAMI" && pwd)"
-JAVA_BIN_DIR="$(source "$WHEREAMI"/java-util && get_java_bin_dir)"
+JAVA_BIN_DIR="$(. /"$WHEREAMI"/java-util && get_java_bin_dir)"
 
 # Remove possilble ending slash
 LOG_DIR="${DRUID_LOG_DIR:=${WHEREAMI}/log}"

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org