Skip to content

Commit 25c4b0f

Browse files
authored
Do not attempt to copy if there aren't any copy targets
1 parent 2382f69 commit 25c4b0f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Plugin.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ public function copyPackageFiles($event)
5151
$toCopy += $package->getExtra()['copy-file'];
5252
}
5353
}
54-
54+
55+
if(!count($toCopy)) {
56+
return;
57+
}
58+
5559
$this->validatePaths($toCopy);
5660

5761
// add our pacakge copy config to the root package config, so that slowprog can find it
@@ -78,4 +82,4 @@ protected function validatePaths(array $paths)
7882
}
7983
}
8084
}
81-
}
85+
}

0 commit comments

Comments
 (0)