From d768a1c738043ae673b60ca6a516c041772ede24 Mon Sep 17 00:00:00 2001 From: tanaka takashi Date: Wed, 26 Aug 2026 22:26:58 +0900 Subject: デプロイ用スクリプト修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'deploy.ps1') diff --git a/deploy.ps1 b/deploy.ps1 index 970bacd..da4a0dc 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -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 } } -- cgit v1.2.3