Unverified Commit ebdaded5 authored by Aral Balkan's avatar Aral Balkan
Browse files

Fix Node version warning

parent 6e8c3128
......@@ -77,14 +77,14 @@ ensureNodeExists(){
REQUIRED_NODE_VERSION="v8.11.3"
if ! hash node 2>/dev/null; then
echo -e "\n • Node.js not installed. Exiting."
echo -e "\n • Node.js not installed. Exiting."
exit 1
fi
# Warn if the required version of Node is not found.
nodeVersion=$(node --version)
if [ $nodeVersion != REQUIRED_NODE_VERSION ]; then
echo -e "\n • Warning: Node $REQUIRED_NODE_VERSION required but $nodeVersion found. Things may misbehave."
if [ "${nodeVersion}" != "${REQUIRED_NODE_VERSION}" ]; then
echo -e "\n • WARNING: Node ${REQUIRED_NODE_VERSION} required but ${nodeVersion} found. Things may misbehave."
fi
}
......@@ -104,7 +104,7 @@ install(){
# Check if a Better Builder installation exists.
if [ -d $relativePathToComponent ]; then
echo -e " • Existing ${humanName} found. Skipping installation."
echo -e "\n • Existing ${humanName} found. Skipping installation."
return 0
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment