From a89a43d4029893854d530c2e5019be82f98fa64a Mon Sep 17 00:00:00 2001 From: fukunee Date: Thu, 14 May 2026 02:36:51 +0800 Subject: [PATCH] Pipe script content through `tr -d '\r'` before execution --- claw.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/claw.ps1 b/claw.ps1 index 2bc599e..9e6e4bf 100644 --- a/claw.ps1 +++ b/claw.ps1 @@ -164,7 +164,7 @@ function Invoke-Run($Name, $Script) { } $sa = Build-SshArgs Write-Host ">>> Running $Script on $Name" -ForegroundColor Green - Get-Content $sp -Raw | & ssh @sa "$HostUser@$HostIP" "bash -s" + (Get-Content $sp -Raw) | & ssh @sa "$HostUser@$HostIP" "tr -d '\r' | bash -s" } # ============================================================