Skip to content
Snippets Groups Projects
Commit f765e8f4 authored by Bob Mottram's avatar Bob Mottram
Browse files

More checks on node upgrade

parent adb03814
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment