Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 138fc0c

Browse files
authored
Ensuring that drush policy applies only to AC. (#693)
1 parent 71c4745 commit 138fc0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

template/drush/policy.drush.inc

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
* Alter alias record data in code.
77
*/
88
function policy_drush_sitealias_alter(&$alias_record) {
9-
if ($alias_record['path-aliases']['%drush-script'] == 'drush9') {
9+
if (!empty($alias_record['uri'])
10+
&& strstr($alias_record['uri'], 'acquia') !== FALSE
11+
&& !empty($alias_record['path-aliases']['%drush-script'])
12+
&& $alias_record['path-aliases']['%drush-script'] == 'drush9') {
1013
// Acquia Cloud does not currently support drush9.
1114
$alias_record['path-aliases']['%drush-script'] = 'drush8';
1215
}

0 commit comments

Comments
 (0)