diff options
Diffstat (limited to 'deploy.ps1')
| -rw-r--r-- | deploy.ps1 | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -10,7 +10,7 @@ $deploymentSucceeded = $false $failureMessage = $null $locationPushed = $false $nativeCommands = @{} -$sshOptions = @("-o", "BatchMode=yes", "-o", "ConnectTimeout=10") +$sshOptions = @("-o", "ConnectTimeout=10") function Get-NativeCommandPath { param( @@ -298,7 +298,8 @@ finally { $null -ne $remoteArchive ) { $cleanupCommand = "rm -f -- '$remoteArchive'" - & $nativeCommands["ssh"] @sshOptions $remoteTarget $cleanupCommand 2>$null | Out-Null + $cleanupSshOptions = @($sshOptions) + @("-o", "BatchMode=yes") + & $nativeCommands["ssh"] @cleanupSshOptions $remoteTarget $cleanupCommand 2>$null | Out-Null } } |
