From 4e8439b0505fb89b220216bb6ce51550cbd861a5 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sat, 26 Jul 2025 11:40:07 +0200 Subject: [PATCH] Updated ping-host.ps1 --- scripts/ping-host.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ping-host.ps1 b/scripts/ping-host.ps1 index 561dcc9d..b26e45cf 100755 --- a/scripts/ping-host.ps1 +++ b/scripts/ping-host.ps1 @@ -7,7 +7,7 @@ Specifies the hostname or IP address to ping (x.com by default) .EXAMPLE PS> ./ping-host.ps1 x.com - ✅ 'x.com' is online, 20ms ping to it's IP 104.244.42.1. + ✅ 'x.com' is online with 20ms ping to it's IP 104.244.42.1 .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -22,7 +22,7 @@ try { [Threading.Tasks.Task]::WaitAll($tasks) foreach($ping in $tasks.Result) { if ($ping.Status -eq "Success") { - Write-Output "✅ '$hostname' is online, ($($ping.RoundtripTime / 2)ms ping to it's IP $($ping.Address))." + Write-Output "✅ '$hostname' is online with $($ping.RoundtripTime / 2)ms ping to it's IP $($ping.Address)" exit 0 # success } else { Write-Output "⚠️ No reply from '$hostname' (IP $($ping.Address)) - check the connection or maybe the host is down."