We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11cbd9d commit b026b08Copy full SHA for b026b08
src/Utils.php
@@ -154,7 +154,7 @@ public static function getExtensionRoot($directory) {
154
$extension_root = FALSE;
155
for ($i = 1; $i <= 5; $i++) {
156
$info_file = $directory . '/' . basename($directory) . '.info';
157
- if (file_exists($info_file) || file_exists($info_file . '.yml')) {
+ if ((file_exists($info_file) && basename($directory) !== 'drush') || file_exists($info_file . '.yml')) {
158
$extension_root = $directory;
159
break;
160
}
0 commit comments