sort nodenv results (for node 10.x install)
This commit is contained in:
parent
69b9a057aa
commit
83e6da5275
@ -25,7 +25,7 @@ fi
|
|||||||
gem update
|
gem update
|
||||||
|
|
||||||
# update latest node
|
# update latest node
|
||||||
LATEST_NODE=$(nodenv install -l |grep -v - |awk '{print $1}'|egrep '[0-9]+\.\d*[0-9]\.[0-9]+'|tail -1)
|
LATEST_NODE=$(nodenv install -l |grep -v - |awk '{print $1}'|egrep '[0-9]+\.\d*[0-9]\.[0-9]+'|sort -n|tail -1)
|
||||||
if [ $LATEST_NODE != $(nodenv global) ]; then
|
if [ $LATEST_NODE != $(nodenv global) ]; then
|
||||||
nodenv install $LATEST_NODE
|
nodenv install $LATEST_NODE
|
||||||
nodenv global $LATEST_NODE
|
nodenv global $LATEST_NODE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user