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

@reached_if fails for more complex cases #113

Closed
xonixx opened this issue Nov 7, 2022 · 0 comments
Closed

@reached_if fails for more complex cases #113

xonixx opened this issue Nov 7, 2022 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@xonixx
Copy link
Owner

xonixx commented Nov 7, 2022

@reached_if [[ -f "$TERRAFORM_RC" ]] && awk '/^plugin_cache_dir/{exit(0)}END{exit(1)}' "$TERRAFORM_RC"

error:

bash: -c: line 5: syntax error near unexpected token `('

Looks like the problem is that it passes the awk script argument without the quotes:

[[ -f "$TERRAFORM_RC" ]] && awk /^plugin_cache_dir/{exit(0)}END{exit(1)} "$TERRAFORM_RC"'

Current workaround: use "string" quoting.

@xonixx xonixx added the bug Something isn't working label Nov 7, 2022
@xonixx xonixx self-assigned this Nov 7, 2022
@xonixx xonixx added this to the 0.9.19 milestone Nov 7, 2022
@xonixx xonixx closed this as completed Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant