Skip to content

Commit

Permalink
Update Cleanup.php
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Apr 24, 2024
1 parent 2ff6569 commit 9b2a24e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Cleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ public function cleanup(array $sourceFiles): void

$absolutePath = $this->workingDir . $relativeDirectoryPath;

// Fix for Windows paths.
$absolutePath = str_replace(['\\','/'], DIRECTORY_SEPARATOR, $absolutePath);

if (is_link($absolutePath)) {
unlink($absolutePath);
}
Expand Down

0 comments on commit 9b2a24e

Please sign in to comment.