mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-05-02 00:53:06 +00:00
Allow using a global node if no bundled node was detected
This commit is contained in:
parent
94d462835c
commit
bf36960618
@ -38,7 +38,13 @@ fi
|
|||||||
NODE_PATH="./bin/node/$NODE_BIN"
|
NODE_PATH="./bin/node/$NODE_BIN"
|
||||||
|
|
||||||
if [ ! -x $NODE_PATH ]; then
|
if [ ! -x $NODE_PATH ]; then
|
||||||
|
|
||||||
|
# As a last resource, try to use an already available node
|
||||||
|
if command -v node >/dev/null 2>&1; then
|
||||||
|
NODE_PATH="node"
|
||||||
|
else
|
||||||
unsupported_platform
|
unsupported_platform
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
$NODE_PATH "./lib/resin.js" "$@"
|
$NODE_PATH "./lib/resin.js" "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user