Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bin/install-wp-tests.sh: 26 Syntax error #24

Closed
endriu84 opened this issue Jun 10, 2017 · 2 comments
Closed

bin/install-wp-tests.sh: 26 Syntax error #24

endriu84 opened this issue Jun 10, 2017 · 2 comments

Comments

@endriu84
Copy link

Hello,
I got this error on every plugin i try to wrap with tests
I use: wp scaffold plugin-tests some-plugin

and I'm getting error when I'm trying to run sh script:

bin/install-wp-tests.sh: 26: bin/install-wp-tests.sh: Syntax error: "(" unexpected (expecting "then")

lines from 26 to 30 looks like this
if [[ $WP_VERSION =~ [0-9]+.[0-9]+(.[0-9]+)? ]]; then
WP_TESTS_TAG="tags/$WP_VERSION"
elif [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then
WP_TESTS_TAG="trunk"
else

I'm on ubuntu 16.

@endriu84 endriu84 changed the title Syntax error: "(" unexpected (expecting "then") bin/install-wp-tests.sh: 26 Syntax error Jun 10, 2017
@gitlost
Copy link
Contributor

gitlost commented Jun 10, 2017

It's a bash script so needs to be run by bash, not sh.

@endriu84
Copy link
Author

Thank You gitlost, It works with bash :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants