Backup / Index unattended

I use Retrospect to backup the computer each night after I leave. The script handles the backup and then shuts down the computer. I would like to add indexing via Sherlock to the script. My question, will the script wait for the indexing to finish BEFORE executing the quit command? I have not done any tests on this myself, I was curious if anyone knew the answer before I modified my script.
Thanks, Brad Bumgarner

I FINALLY had the chance to get back to this routine. Thanks for the info. I have implimented the changes, but I have not had the chance to test them yet.
Brad Bumgarner, CTA