Exit script/setup if node is not found

This mirrors what the script already does if ruby is not found
This commit is contained in:
Jon Leighton
2019-06-17 11:26:54 +10:00
parent b1d4461c77
commit 150310bf67

View File

@@ -29,6 +29,7 @@ fi
# Check node version
if ! node --version | grep $NODE_VERSION > /dev/null; then
printf "${RED}Open Food Network requires node ${NODE_VERSION}${NO_COLOR}. Have a look at: https://github.com/nodenv/nodenv\n"
exit 1
fi
# Set up Ruby dependencies via Bundler