test nodefix

This commit is contained in:
Christian Rotzoll 2019-07-25 22:42:19 +02:00
parent ea2435b7da
commit fb1135c33d

View file

@ -61,8 +61,8 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
export PATH=/usr/local/lib/nodejs/node-$VERSION-$DISTRO/bin:$PATH
echo ""
# check if nodeJS was installed (v11)
nodeJSInstalled=$(node -v | grep -c "v11.")
# check if nodeJS was installed
nodeJSInstalled=$(node -v | grep -c "v1.")
if [ ${nodeJSInstalled} -eq 0 ]; then
echo "FAIL - Was not able to install nodeJS"
echo "ABORT - RTL install"