Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public function createDelegate($source, $dest)
$sourcePath = $this->getSourceDir() . '/' . $this->removeTrailingSlash($source);
$destPath = $this->getDestDir() . '/' . $this->removeTrailingSlash($dest);

//remove symlink to avoid unlink files from vendor directory
if (is_link($destPath)) {
unlink($destPath);
}

// Create all directories up to one below the target if they don't exist
$destDir = dirname($destPath);
Expand Down