Skip to content

Commit

Permalink
更新node的路径获取
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Jul 29, 2015
1 parent c4575a2 commit 7c79888
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
8 changes: 7 additions & 1 deletion get_alinode_version
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/bash

node -p 'process.alinode'
NODE=`which node`

if [ -f "$HOME/.nodepath" ]; then
NODE=`cat $HOME/.nodepath`/node;
fi

$NODE -p 'process.alinode'
8 changes: 7 additions & 1 deletion get_node_version
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/bash

node -v
NODE=`which node`

if [ -f "$HOME/.nodepath" ]; then
NODE=`cat $HOME/.nodepath`/node;
fi

NODE -v
19 changes: 0 additions & 19 deletions get_status

This file was deleted.

0 comments on commit 7c79888

Please sign in to comment.