More checks on node upgrade
This commit is contained in:
parent
adb038143d
commit
f765e8f4e9
|
@ -164,7 +164,15 @@ function nodejs_upgrade {
|
|||
return
|
||||
fi
|
||||
if grep -q "node_8.x" /etc/apt/sources.list.d/nodesource.list; then
|
||||
return
|
||||
if [ -f /usr/local/bin/node ]; then
|
||||
return
|
||||
fi
|
||||
fi
|
||||
if [ -f /usr/local/bin/node ]; then
|
||||
CURR_NODE_VERSION=$(node --version)
|
||||
if [[ "$CURR_NODE_VERSION" == "v${NODEJS_VERSION}" ]]; then
|
||||
return
|
||||
fi
|
||||
fi
|
||||
rootdir=
|
||||
mesh_install_nodejs
|
||||
|
|
Loading…
Reference in New Issue