Skip to content

Commit dba3b54

Browse files
committed
Delete temporary file
1 parent bfbab1c commit dba3b54

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Deployment/Deployer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ public function deploy(): void
150150
$this->logger->log("Creating remote file $this->deploymentFile.running");
151151
$runningFile = "$this->remoteDir/$this->deploymentFile.running";
152152
$this->server->createDir(str_replace('\\', '/', dirname($runningFile)));
153-
$this->server->writeFile(tempnam($this->tempDir, 'deploy'), $runningFile);
153+
$localRunningFile = tempnam($this->tempDir, 'deploy');
154+
$this->server->writeFile($localRunningFile, $runningFile);
155+
unlink($localRunningFile);
154156

155157
if ($toUpload) {
156158
$this->logger->log("\nRenaming:");

0 commit comments

Comments
 (0)