When I run drush updatedb from within a bash script, I get:
A Drupal installation directory could not be found
Command updatedb needs a higher bootstrap level to run - you will need invoke drush from a more functional Drupal environment to run this command.
The command 'drush.php updatedb' could not be executed.
However when I run it from shell normally, it works just fine.