Skip to content

Commit

Permalink
fixes relative dir on windows (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Aug 30, 2018
1 parent 34a058f commit 4c4ba98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Utils/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ public static function getAvailableDbRegions()

protected function getRelativeDir($dir)
{
return $dir && $dir[0] === DIRECTORY_SEPARATOR
? $dir
: $this->dir . DIRECTORY_SEPARATOR . $dir;
return $this->isRelativePath($dir)
? $this->dir . DIRECTORY_SEPARATOR . $dir
: $dir;
}

private function isRelativePath($path)
Expand Down

0 comments on commit 4c4ba98

Please sign in to comment.