@@ -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