summaryrefslogtreecommitdiff
path: root/deploy.ps1
diff options
context:
space:
mode:
authortanaka takashi <isazaka@gmail.com>2026-08-26 22:26:58 +0900
committertanaka takashi <isazaka@gmail.com>2026-08-26 22:26:58 +0900
commitd768a1c738043ae673b60ca6a516c041772ede24 (patch)
treef7f9c7cee852d8f7927dd30cada727a9d22ed856 /deploy.ps1
parentc0c2408e6830d82b5baad57e2b89d5c1e05dfc31 (diff)
デプロイ用スクリプト修正
Diffstat (limited to 'deploy.ps1')
-rw-r--r--deploy.ps15
1 files changed, 3 insertions, 2 deletions
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
}
}