Im not into this sript thing, so I couldnt say why the code did not work for me:
I had to comment out this If-Else section as it picked "Bearer" even though I set auth_method to "global"
###########################################
## Check and set the proper auth header
###########################################
if [[ "${auth_method}" == "global" ]]; then
auth_header="X-Auth-Key:"
else
auth_header="Authorization: Bearer"
fi
Hi,
Im not into this sript thing, so I couldnt say why the code did not work for me: I had to comment out this If-Else section as it picked "Bearer" even though I set auth_method to "global"