Skip to content

Commit e385819

Browse files
committed
fix no node path
1 parent 0351762 commit e385819

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

get_alinode_version

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
export ENABLE_NODE_LOG=NO
4+
35
NODE=`which node`
46

57
if [ -f "$HOME/.nodepath" ]; then

get_node_version

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
export ENABLE_NODE_LOG=NO
4+
35
NODE=`which node`
46

57
if [ -f "$HOME/.nodepath" ]; then

get_os_info

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#!/bin/bash
22

3-
node -e '
3+
export ENABLE_NODE_LOG=NO
4+
5+
NODE=`which node`
6+
7+
if [ -f "$HOME/.nodepath" ]; then
8+
NODE=`cat $HOME/.nodepath`/node;
9+
fi
10+
11+
$NODE -e '
412
var os = require("os");
513
console.log("%s/%s/%s/%s/%s", os.type(), os.hostname(), os.platform(), os.arch(), os.release());
614
'

0 commit comments

Comments
 (0)