Extra node check
This commit is contained in:
parent
f765e8f4e9
commit
d05ed7ef30
|
@ -165,9 +165,12 @@ function nodejs_upgrade {
|
||||||
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
|
||||||
if [ -f /usr/local/bin/node ]; then
|
if [ -f /usr/local/bin/node ]; then
|
||||||
|
CURR_NODE_VERSION=$(node --version)
|
||||||
|
if [[ "$CURR_NODE_VERSION" == "v${NODEJS_VERSION}" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
if [ -f /usr/local/bin/node ]; then
|
if [ -f /usr/local/bin/node ]; then
|
||||||
CURR_NODE_VERSION=$(node --version)
|
CURR_NODE_VERSION=$(node --version)
|
||||||
if [[ "$CURR_NODE_VERSION" == "v${NODEJS_VERSION}" ]]; then
|
if [[ "$CURR_NODE_VERSION" == "v${NODEJS_VERSION}" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue