Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    You add variable in single quotes, so it is not interpreted by bash and it's just a string for curl Commented Feb 24, 2023 at 14:46
  • In that third code block, where you get the error "curl: option -: is unknown", are you entering that command manually on the shell command line? Or is that the output you get from that script of yours above? Commented Feb 24, 2023 at 15:22
  • Using backticks in 2023 stop me reading this, TL;DR: use $() form... Commented Feb 24, 2023 at 15:31
  • 1
    @GillesQuénot, there don't seem to be any backticks there? (Apart from the code block formatting added by AdminBee, that is.) Or am I missing something? Commented Feb 24, 2023 at 15:33
  • My bad, dunno what's happens Commented Feb 24, 2023 at 15:35