Fix deploy remote script CRLF issues on Windows PowerShell.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-19 17:25:36 +02:00
parent fcb09483a5
commit 766fc7f6ef
3 changed files with 6 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
scripts/*.sh text eol=lf
+4 -1
View File
@@ -95,7 +95,7 @@ docker compose up -d --build --remove-orphans
info "Waiting for health check ($HEALTH_URL)…"
ok=0
for ((i = 1; i <= HEALTH_RETRIES; i++)); do
if curl -fsS -o /dev/null "$HEALTH_URL"; then
if curl -fsS -o /dev/null "$HEALTH_URL" 2>/dev/null; then
ok=1
break
fi
@@ -118,6 +118,9 @@ info "Service status:"
docker compose ps
'@
# PowerShell here-strings use CRLF on Windows; strip CR before sending to remote bash.
$RemoteScript = ($RemoteScript -replace "`r`n", "`n") -replace "`r", ""
$RemoteScript | & ssh @SshOpts $DeployHost bash -s -- `
$DeployDir `
$Branch `
+1 -1
View File
@@ -107,7 +107,7 @@ docker compose up -d --build --remove-orphans
info "Waiting for health check ($HEALTH_URL)…"
ok=0
for ((i = 1; i <= HEALTH_RETRIES; i++)); do
if curl -fsS -o /dev/null "$HEALTH_URL"; then
if curl -fsS -o /dev/null "$HEALTH_URL" 2>/dev/null; then
ok=1
break
fi