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

Extra node check

parent f765e8f4
No related branches found
No related tags found
No related merge requests found
......@@ -165,7 +165,10 @@ function nodejs_upgrade {
fi
if grep -q "node_8.x" /etc/apt/sources.list.d/nodesource.list; then
if [ -f /usr/local/bin/node ]; then
return
CURR_NODE_VERSION=$(node --version)
if [[ "$CURR_NODE_VERSION" == "v${NODEJS_VERSION}" ]]; then
return
fi
fi
fi
if [ -f /usr/local/bin/node ]; then
......
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