Skip to content

Commit

Permalink
Merge pull request #58 from codedge/fix-copy-error-when-updating
Browse files Browse the repository at this point in the history
Fix copy error
  • Loading branch information
codedge authored Apr 5, 2019
2 parents 08fd69a + 2acd640 commit 707c608
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SourceRepositoryTypes/GithubRepositoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ public function update($version = '') : bool

// Now move all the files left in the main directory
collect(File::allFiles($sourcePath, true))->each(function ($file) { /* @var \SplFileInfo $file */
File::copy($file->getRealPath(), base_path($file->getFilename()));
if ($file->getRealPath()) {
File::copy($file->getRealPath(), base_path($file->getFilename()));
}
});

File::deleteDirectory($sourcePath);
Expand Down

0 comments on commit 707c608

Please sign in to comment.