? abessive ? scripts Index: commands/pm/pm.drush.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/pm/pm.drush.inc,v retrieving revision 1.23 diff -u -p -r1.23 pm.drush.inc --- commands/pm/pm.drush.inc 19 Apr 2009 19:51:55 -0000 1.23 +++ commands/pm/pm.drush.inc 21 Apr 2009 01:17:38 -0000 @@ -474,11 +474,12 @@ function pm_dl_destination($type) { } $drupal_root = drush_get_context('DRUSH_DRUPAL_ROOT'); - $site_root = drush_get_context('DRUSH_DRUPAL_SITE_ROOT', false); + $site_root = drush_get_context('DRUSH_DRUPAL_SITE_ROOT', false); + $site_not_specified = is_null(drush_get_option(array('l','uri'))); // 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) {