diff --git a/hermes/deploy.ps1 b/hermes/deploy.ps1 index 260e145..e1a268b 100644 --- a/hermes/deploy.ps1 +++ b/hermes/deploy.ps1 @@ -65,7 +65,8 @@ if (-not (Get-Command docker -ErrorAction SilentlyContinue)) { } # En PS 5.1, *> $null sobre comandos nativos convierte stderr en errores # terminantes con EAP=Stop (PS #4002). Se descarta via cmd /c. -if (-not (cmd /c "docker info >NUL 2>&1")) { +$null = cmd /c "docker info >NUL 2>&1" +if ($LASTEXITCODE -ne 0) { Err 'Docker Desktop no responde. Abre Docker Desktop y espera a que arranque.' exit 1 } diff --git a/openclaw/deploy.ps1 b/openclaw/deploy.ps1 index 86c00d0..fb82875 100644 --- a/openclaw/deploy.ps1 +++ b/openclaw/deploy.ps1 @@ -65,7 +65,8 @@ if (-not (Get-Command docker -ErrorAction SilentlyContinue)) { } # En PS 5.1, *> $null sobre comandos nativos convierte stderr en errores # terminantes con EAP=Stop (PS #4002). Se descarta via cmd /c. -if (-not (cmd /c "docker info >NUL 2>&1")) { +$null = cmd /c "docker info >NUL 2>&1" +if ($LASTEXITCODE -ne 0) { Err 'Docker Desktop no responde. Abre Docker Desktop y espera a que arranque.' exit 1 } diff --git a/openwebui/deploy.ps1 b/openwebui/deploy.ps1 index b1a725a..ba07b25 100644 --- a/openwebui/deploy.ps1 +++ b/openwebui/deploy.ps1 @@ -63,7 +63,8 @@ if (-not (Get-Command docker -ErrorAction SilentlyContinue)) { } # En PS 5.1, *> $null sobre comandos nativos convierte stderr en errores # terminantes con EAP=Stop (PS #4002). Se descarta via cmd /c. -if (-not (cmd /c "docker info >NUL 2>&1")) { +$null = cmd /c "docker info >NUL 2>&1" +if ($LASTEXITCODE -ne 0) { Err 'Docker Desktop no responde. Abre Docker Desktop y espera a que arranque.' exit 1 } diff --git a/wordpress/deploy.ps1 b/wordpress/deploy.ps1 index 9608df3..bb2f4c3 100644 --- a/wordpress/deploy.ps1 +++ b/wordpress/deploy.ps1 @@ -63,7 +63,8 @@ if (-not (Get-Command docker -ErrorAction SilentlyContinue)) { } # En PS 5.1, *> $null sobre comandos nativos convierte stderr en errores # terminantes con EAP=Stop (PS #4002). Se descarta via cmd /c. -if (-not (cmd /c "docker info >NUL 2>&1")) { +$null = cmd /c "docker info >NUL 2>&1" +if ($LASTEXITCODE -ne 0) { Err 'Docker Desktop no responde. Abre Docker Desktop y espera a que arranque.' exit 1 }