diff --git a/src/Deployer/AbstractDeployer.php b/src/Deployer/AbstractDeployer.php index fbc7c64..f286e23 100644 --- a/src/Deployer/AbstractDeployer.php +++ b/src/Deployer/AbstractDeployer.php @@ -203,6 +203,8 @@ final protected function safeDelete(Server $server, array $absolutePaths): void if (empty($pathsToDelete)) { $this->log('There are no paths to delete.'); + + return; } $this->runOnServer(sprintf('rm -rf %s', implode(' ', $pathsToDelete)), $server);