? drushrc.php Index: commands/pm/pm.drush.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/pm/pm.drush.inc,v retrieving revision 1.16 diff -u -p -r1.16 pm.drush.inc --- commands/pm/pm.drush.inc 14 Apr 2009 21:30:29 -0000 1.16 +++ commands/pm/pm.drush.inc 14 Apr 2009 22:26:51 -0000 @@ -513,16 +513,16 @@ function pm_dl_destination($type) { $drupal_root = drush_get_context('DRUSH_DRUPAL_ROOT'); $site_root = drush_get_context('DRUSH_DRUPAL_SITE_ROOT', false); + $site_not_specified = is_null(drush_get_option('l')); // If a URI is provided and we bootstrapped successfully then we install to // that specific site, otherwise we install to sites/all/modules - if ($site_root) { + if ($site_root && !$site_not_specified) { $sitepath = $drupal_root .'/'. $site_root .'/'; } else if ($drupal_root) { $sitepath = $drupal_root . '/sites/all/'; }