I am trying to download jq on my TeamCity (which is running a bash script) agent. Which I did successfully using
echo "installing jq"
sudo apt-get update
sudo apt-get install jq
sudo apt-get update
However, when my bash script runs
cloudSecretARN=$(aws secretsmanager create-secret --name ${env}-${clubName}Env-cloud --secret-string "{}" | jq -r '.ARN')
I receive this error line 55: jq: command not found
Although jq is installed successfully.