Skip to content

Commit

Permalink
#4578: allow DRUSH_OPTIONS_URI environment variable (#4579)
Browse files Browse the repository at this point in the history
  • Loading branch information
nevergone committed Oct 24, 2020
1 parent a5d350d commit af1a719
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/preflight.inc
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ function _drush_preflight_root_uri() {
*/
function _drush_preflight_uri() {
$uri = drush_get_option('uri', '');
if (empty($uri) && getenv('DRUSH_OPTIONS_URI')) {
$uri = getenv('DRUSH_OPTIONS_URI');
}
drush_set_context('DRUSH_SELECTED_URI', $uri);
}

Expand Down

0 comments on commit af1a719

Please sign in to comment.