commit 2f69fb315a2f6fdc5b0b7e40e17b2618b720c9bc
Author: Moshe Weitzman <weitzman@tejasa.com>
Date:   Thu Oct 31 15:34:58 2013 -0400

    Don't redirect CLI requests to install.php

diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 399c9fb..d071bc4 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -1976,7 +1976,7 @@ function _drupal_bootstrap_configuration() {
   // Redirect the user to the installation script if Drupal has not been
   // installed yet (i.e., if no $databases array has been defined in the
   // settings.php file) and we are not already installing.
-  if (empty($GLOBALS['databases']) && !drupal_installation_attempted()) {
+  if (empty($GLOBALS['databases']) && !drupal_installation_attempted() && !drupal_is_cli()) {
     include_once __DIR__ . '/install.inc';
     install_goto('core/install.php');
   }
