Commit 915b1300 authored by Rory Hunter's avatar Rory Hunter Committed by Joe Haddad
Browse files

Make node version check more robust in e2e.sh (#1295)

parent c9bc6ce3
Showing with 1 addition and 1 deletion
+1 -1
......@@ -68,7 +68,7 @@ root_path=$PWD
npm install
# If the node version is < 4, the script should just give an error.
if [ `node --version | sed -e 's/^v//' -e 's/\..\+//g'` -lt 4 ]
if [[ `node --version | sed -e 's/^v//' -e 's/\..*//g'` -lt 4 ]]
then
cd $temp_app_path
err_output=`node "$root_path"/packages/create-react-app/index.js test-node-version 2>&1 > /dev/null || echo ''`
......
Supports Markdown
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