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

Commit 956a729

Browse files
author
fd6130
committed
Do not run rm on a server if delete path is empty
1 parent dec2ffb commit 956a729

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)