Skip to content

Commit 4c4ba98

Browse files
authored
fixes relative dir on windows (#47)
1 parent 34a058f commit 4c4ba98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Utils/Project.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ public static function getAvailableDbRegions()
145145

146146
protected function getRelativeDir($dir)
147147
{
148-
return $dir && $dir[0] === DIRECTORY_SEPARATOR
149-
? $dir
150-
: $this->dir . DIRECTORY_SEPARATOR . $dir;
148+
return $this->isRelativePath($dir)
149+
? $this->dir . DIRECTORY_SEPARATOR . $dir
150+
: $dir;
151151
}
152152

153153
private function isRelativePath($path)

0 commit comments

Comments
 (0)