fork(1) download
  1. #!/bin/bash
  2.  
  3. ENV_VAR=foo
  4.  
  5. set -x
  6. curl -u {user}: -X POST --header 'Content-Type: application/json' -d '{"my-var": " '"$ENV_VAR"' "}' https://url &>/dev/null
Runtime error #stdin #stdout #stderr 0.01s 11420KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
+ curl -u '{user}:' -X POST --header 'Content-Type: application/json' -d '{"my-var": " foo "}' https://url