The value of "name" in the return json from the bitbucket api is like "My Name", but the value needed in the script later on is actually in "slug", which is like "my-name". Otherwise $BaseAPI/repositories/$wks/$Name/refs/branches produces a bad value and we get the error jq: error (at <stdin>:0): Cannot iterate over null (null).
The value of "name" in the return json from the bitbucket api is like "My Name", but the value needed in the script later on is actually in "slug", which is like "my-name". Otherwise
$BaseAPI/repositories/$wks/$Name/refs/branches
produces a bad value and we get the errorjq: error (at <stdin>:0): Cannot iterate over null (null)
.