Skip to content

Commit

Permalink
improved and simplified node test
Browse files Browse the repository at this point in the history
Signed-off-by: Sven R <[email protected]>
  • Loading branch information
hackacad committed Sep 22, 2021
1 parent eddeb2d commit 23865dd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dev/build/tasks/bin/scripts/opensearch-dashboards
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ CONFIG_DIR=${OSD_PATH_CONF:-"$DIR/config"}

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

test -x "$NODE"

if [ ! -x "$NODE" ]; then
echo "unable to find usable node.js executable."
exit 1
Expand Down

0 comments on commit 23865dd

Please sign in to comment.