diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-08-26 22:26:58 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-08-26 22:26:58 +0900 |
| commit | d768a1c738043ae673b60ca6a516c041772ede24 (patch) | |
| tree | f7f9c7cee852d8f7927dd30cada727a9d22ed856 /deploy.ps1 | |
| parent | c0c2408e6830d82b5baad57e2b89d5c1e05dfc31 (diff) | |
デプロイ用スクリプト修正
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 } } |
