Skip to content

Commit ff678b3

Browse files
rotemreissweitzman
authored andcommitted
#3569, Drush 9 aliases path is wrong when using symlink (#3570)
* #3569, Drush 9 aliases path is wrong when using symlink * #3569, Coding standards fixes
1 parent 995ea4b commit ff678b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SiteAlias/AliasRecord.php

100644100755
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ public function hasRoot()
117117
*/
118118
public function root()
119119
{
120-
$root = FsUtils::realpath($this->get('root'));
120+
$root = $this->get('root');
121+
if ($this->isLocal()) {
122+
return FsUtils::realpath($root);
123+
}
121124

122125
return $root;
123126
}

0 commit comments

Comments
 (0)