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

Calling tfenv from bash script results in syntax error #14

Open
rboarman-sc opened this issue Jul 24, 2019 · 1 comment
Open

Calling tfenv from bash script results in syntax error #14

rboarman-sc opened this issue Jul 24, 2019 · 1 comment

Comments

@rboarman-sc
Copy link

rboarman-sc commented Jul 24, 2019

Using this code, look at line 30:

https://github.com/cloudposse/terraform-root-modules/blob/master/aws/tfstate-backend/scripts/init.sh

Running the terraform project results in this error:

scripts/init.sh: eval: line 42: syntax error near unexpected token `('
make: *** [init] Error 2

Running tfenv straight from the command line works fine.

Given that the project does not compile under windows, I am unsure how to debug this further.

@osterman
Copy link
Contributor

scripts/init.sh: eval: line 42: syntax error near unexpected token ('`

My best guess is this is due to using sh and not bash; possibly sh is the default in whatever shell you are in? Apologies - we have never tried using it on anything other than Linux/MacOS. :-/

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