When deploying with firebase deploy the index deploy phase finishes automatically but indexes can take a long time (10+ minutes) to actually be ready to use.
How can I make my deploy script wait for the indexes to be actually ready before continuing to push code that depends on the index?
This
gcloudcommand will show operations in progress:When there is nothing in progress, it will return
[]. We can write a bash script to wait for that: