#bash - August 2020

bashArchived
1 messages

A channel for bash scripting

August 2020
Brij S
Brij Sabout 6 years ago
Hey bash experts!
workspace_id=$(curl -s --header "Authorization: Bearer ${TFE_TOKEN}" --header "Content-Type: application/vnd.api+json" "<https://some/giant/url/here>" | jq -r .data.id)
echo "Workspace ID is ${workspace_id}"

when I run that curl command in shell, it works fine but when I put that into a shell script it just returns null, any ideas why?