so i am new to bash scripting and trying to setup my first conditional block. I am using a shell script to get a JSON response and when the returned item is 0 i want it to do something.
QUEUE_SIZE=$(curl url | jq '.items | length')
if ["$QUEUE_SIZE" -eq "0"]
then
echo "Hey this is cool!!"
fi
When i run the above script, i get the following error: line 3: [0: command not found
Can someone please correct what i'm doing wrong? Thank you for the assistance.