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

Commit 0d47873

Browse files
committed
Ensuring that drush policy applies only to AC.
1 parent d0c5d69 commit 0d47873

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

template/drush/policy.drush.inc

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
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'] && strstr($alias_record['uri'], 'acquia') !== FALSE)
10+
&& !empty($alias_record['path-aliases']['%drush-script'])
11+
&& $alias_record['path-aliases']['%drush-script'] == 'drush9') {
1012
// Acquia Cloud does not currently support drush9.
1113
$alias_record['path-aliases']['%drush-script'] = 'drush8';
1214
}

0 commit comments

Comments
 (0)