mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Merge pull request #200 from deployphp/elfet-get_exit_status
Update PhpSecLib::run method to check exit status.
This commit is contained in:
commit
bb330efba0
@ -108,7 +108,7 @@ class PhpSecLib implements ServerInterface
|
||||
|
||||
$result = $this->sftp->exec($command);
|
||||
|
||||
if ($this->sftp->getStdError()) {
|
||||
if ($this->sftp->getExitStatus() !== 0) {
|
||||
throw new \RuntimeException($this->sftp->getStdError());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user