Skip to content

Commit b026b08

Browse files
committed
Merge pull request #20 from weitzman/patch-5
Avoid recognizing drush.info file
1 parent 11cbd9d commit b026b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public static function getExtensionRoot($directory) {
154154
$extension_root = FALSE;
155155
for ($i = 1; $i <= 5; $i++) {
156156
$info_file = $directory . '/' . basename($directory) . '.info';
157-
if (file_exists($info_file) || file_exists($info_file . '.yml')) {
157+
if ((file_exists($info_file) && basename($directory) !== 'drush') || file_exists($info_file . '.yml')) {
158158
$extension_root = $directory;
159159
break;
160160
}

0 commit comments

Comments
 (0)