Skip to content

Commit 707c608

Browse files
authored
Merge pull request #58 from codedge/fix-copy-error-when-updating
Fix copy error
2 parents 08fd69a + 2acd640 commit 707c608

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SourceRepositoryTypes/GithubRepositoryType.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ public function update($version = '') : bool
148148

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

154156
File::deleteDirectory($sourcePath);

0 commit comments

Comments
 (0)