Skip to content

Commit

Permalink
Unlink symlinked packages during deleteVendorPackages
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Dec 6, 2023
1 parent c7a4479 commit 503f110
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public function cleanup(array $sourceFiles): void

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

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

if ($absolutePath !== realpath($absolutePath)) {
continue;
}
Expand Down

0 comments on commit 503f110

Please sign in to comment.