Update setup-ubuntu.bash
This commit is contained in:
parent
3c2c7fd094
commit
e8993985bd
|
@ -25,6 +25,8 @@ fi
|
||||||
|
|
||||||
# node
|
# node
|
||||||
if [ -n "$(which node | grep node 2>/dev/null)" ]; then
|
if [ -n "$(which node | grep node 2>/dev/null)" ]; then
|
||||||
|
NODE_VER=""
|
||||||
|
|
||||||
if [ "${NODE_VER}" == "$(node -v 2>/dev/null)" ]; then
|
if [ "${NODE_VER}" == "$(node -v 2>/dev/null)" ]; then
|
||||||
echo node ${NODE_VER} already installed
|
echo node ${NODE_VER} already installed
|
||||||
else
|
else
|
||||||
|
@ -34,7 +36,6 @@ if [ -n "$(which node | grep node 2>/dev/null)" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "to reinstall please first run: rm $(which node)"
|
echo "to reinstall please first run: rm $(which node)"
|
||||||
echo ""
|
echo ""
|
||||||
NODE_VER=""
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue