统一远程发布脚本换行符

This commit is contained in:
WuYongJie 2026-07-16 21:04:56 +08:00
parent 17a205a1d2
commit 9df330d266

View File

@ -186,6 +186,7 @@ $replacements = @{
foreach ($entry in $replacements.GetEnumerator()) {
$remoteScript = $remoteScript.Replace($entry.Key, $entry.Value)
}
$remoteScript = $remoteScript.Replace("`r`n", "`n")
$localTemp = Join-Path ([System.IO.Path]::GetTempPath()) ("yyd-notification-deploy-{0}.sh" -f [guid]::NewGuid().ToString('N'))
$remoteTemp = "/tmp/$(Split-Path $localTemp -Leaf)"