More checks on node upgrade
This commit is contained in:
parent
adb038143d
commit
f765e8f4e9
|
@ -164,7 +164,15 @@ function nodejs_upgrade {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if grep -q "node_8.x" /etc/apt/sources.list.d/nodesource.list; then
|
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
|
fi
|
||||||
rootdir=
|
rootdir=
|
||||||
mesh_install_nodejs
|
mesh_install_nodejs
|
||||||
|
|
Loading…
Reference in New Issue