mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 21:57:51 +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"
|
||||
|
||||
if [ ! -x $NODE_PATH ]; then
|
||||
unsupported_platform
|
||||
|
||||
# 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
|
||||
fi
|
||||
fi
|
||||
|
||||
$NODE_PATH "./lib/resin.js" "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user