mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Update Client.php
This commit is contained in:
parent
bde7847461
commit
5fab2ecbe0
@ -83,7 +83,11 @@ class Client
|
||||
|
||||
$shellCommand = $host->getShellCommand();
|
||||
|
||||
$ssh = "ssh $sshArguments $host $become '$shellCommand; printf \"[exit_code:%s]\" $?;'";
|
||||
if (strtolower(substr(PHP_OS, 0, 3)) === 'win') {
|
||||
$ssh = "ssh $sshArguments $host $become \"$shellCommand; printf '[exit_code:%s]' $?;\"";
|
||||
} else {
|
||||
$ssh = "ssh $sshArguments $host $become '$shellCommand; printf \"[exit_code:%s]\" $?;'";
|
||||
}
|
||||
|
||||
$process = new Process($ssh);
|
||||
$process
|
||||
|
Loading…
x
Reference in New Issue
Block a user