Skip to content

Commit 444de6e

Browse files
author
Audrius Karabanovas
authored
Merge pull request #35 from lushc/bugfix/missing-dir-separator
Fix missing directory separators
2 parents 378b268 + 4d33997 commit 444de6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Provider/RevisionProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function getVersion()
4545
*/
4646
private function isCapistranoEnv()
4747
{
48-
return file_exists($this->path . 'REVISION');
48+
return file_exists($this->path . DIRECTORY_SEPARATOR . 'REVISION');
4949
}
5050

5151
/**
@@ -72,7 +72,7 @@ private function canGetRevision()
7272
*/
7373
private function getRevision()
7474
{
75-
$result = file_get_contents($this->path . 'REVISION');
75+
$result = file_get_contents($this->path . DIRECTORY_SEPARATOR . 'REVISION');
7676

7777
return $result;
7878
}

0 commit comments

Comments
 (0)