Skip to content

Commit 6a343db

Browse files
pugnascotiarandycoulman
authored andcommitted
Make node version check more robust in e2e.sh (facebook#1295)
1 parent 2919358 commit 6a343db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/e2e-simple.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ root_path=$PWD
6868
npm install
6969

7070
# If the node version is < 4, the script should just give an error.
71-
if [ `node --version | sed -e 's/^v//' -e 's/\..\+//g'` -lt 4 ]
71+
if [[ `node --version | sed -e 's/^v//' -e 's/\..*//g'` -lt 4 ]]
7272
then
7373
cd $temp_app_path
7474
err_output=`node "$root_path"/packages/create-react-app/index.js test-node-version 2>&1 > /dev/null || echo ''`

0 commit comments

Comments
 (0)