Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit a1797bd

Browse files
authored
Merge pull request #7 from fd6130/patch
Do not run rm on a server if delete path is empty
2 parents dec2ffb + 956a729 commit a1797bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Deployer/AbstractDeployer.php

+2
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ final protected function safeDelete(Server $server, array $absolutePaths): void
203203

204204
if (empty($pathsToDelete)) {
205205
$this->log('There are no paths to delete.');
206+
207+
return;
206208
}
207209

208210
$this->runOnServer(sprintf('rm -rf %s', implode(' ', $pathsToDelete)), $server);

0 commit comments

Comments
 (0)