Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
915b1300
Commit
915b1300
authored
8 years ago
by
Rory Hunter
Committed by
Joe Haddad
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Make node version check more robust in e2e.sh (#1295)
parent
c9bc6ce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/e2e-simple.sh
+1
-1
tasks/e2e-simple.sh
with
1 addition
and
1 deletion
+1
-1
tasks/e2e-simple.sh
+
1
-
1
View file @
915b1300
...
...
@@ -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
''
`
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment