I'm realy new to bash (coding at all) and i have a problem, which is probably realy simple to solve. I allready tried different versions of it, but it never gave me the correct result.
My goal is, that it use the curl command with the path of each subfolder. The problem is, in the curl command, it using "${d}" instead of the content of the variable. (tested with echo)
for d in `find /some/path -mindepth 1 -type d`
do
curl http://localhost:3456/api/command -X POST -d '{"name": "something", "path": "${d}"}' --header "X-Api-Key:myapikey"
done