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

fix: ubuntu setup install of terraform docs #174

Closed
mavogel opened this issue Feb 25, 2021 · 1 comment
Closed

fix: ubuntu setup install of terraform docs #174

mavogel opened this issue Feb 25, 2021 · 1 comment

Comments

@mavogel
Copy link
Contributor

mavogel commented Feb 25, 2021

Current behavior

curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-linux-amd64
# returns two urls
https://github.com/terraform-docs/terraform-docs/releases/download/v0.11.2/terraform-docs-v0.11.2-linux-amd64
https://github.com/terraform-docs/terraform-docs/releases/download/v0.11.2/terraform-docs-v0.11.2-linux-amd64
# results in the error
curl: (3) Illegal characters found in URL

Quick fix

curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-linux-amd64" | uniq
  • More suitable would be to parse the json with jq
  • Or use the tar.gz URL and untar
@antonbabenko
Copy link
Owner

Fixed by #175

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