mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Merge pull request #600 from Whyounes/fix-ssh2-upload
Fixed SSH upload method bug
This commit is contained in:
commit
e4b7e75251
@ -131,7 +131,7 @@ class SshExtension implements ServerInterface
|
||||
$this->directories[$dir] = true;
|
||||
}
|
||||
|
||||
if (!$this->session->getSftp()->send($local, $remote)) {
|
||||
if ($this->session->getSftp()->send($local, $remote) === false) {
|
||||
throw new \RuntimeException('Can not upload file.');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user