Skip to content

Commit

Permalink
[1.x] Fix Node selection when using built in node (#912) (#916)
Browse files Browse the repository at this point in the history
Fixed node selection to use the node executable instead of the user local node.

Issue resolved:
#908

Signed-off-by: Sven R <[email protected]>

Co-authored-by: Sven R <[email protected]>
  • Loading branch information
kavilla and hackacad authored Nov 5, 2021
1 parent c46caed commit 66c5e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/build/tasks/bin/scripts/opensearch-dashboards
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ DIR="$(dirname "${SCRIPT}")/.."
CONFIG_DIR=${OSD_PATH_CONF:-"$DIR/config"}

if [ -x "${DIR}/node/bin/node" ]; then
NODE="/usr/local/bin/node"
NODE="${DIR}/node/bin/node"
else
NODE="$(which node)"
fi
Expand Down

0 comments on commit 66c5e50

Please sign in to comment.