kops: parse error near `)' in bash & zsh

curl -Lo kops https://github.com/kubernetes/kops/releases/download/$\(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-darwin-amd64

zsh: parse error near `)’

bash: syntax error near unexpected token `)’

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (1 by maintainers)

Most upvoted comments

Looks like you’ve still got the \ in there. That’s definitely causing the issue. Take it out and you won’t get the error

Sweet that’s working now. Much appreciated @itmecho you are a hero.

Can you try this?

curl -Lo kops https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-darwin-amd64