From ba9a36eff99692c5ee8922b625095cd4c675523e Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Fri, 8 Aug 2025 16:16:56 -0600 Subject: [PATCH] fppo --- Windows-Scripts/wait-on-host.ps1 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Windows-Scripts/wait-on-host.ps1 b/Windows-Scripts/wait-on-host.ps1 index 997f1e1..1e1b251 100644 --- a/Windows-Scripts/wait-on-host.ps1 +++ b/Windows-Scripts/wait-on-host.ps1 @@ -9,8 +9,6 @@ # hold: 30 # ex. `.\wait-on-host.ps1 -hostname google.com -sleep 10 -pingcount 5` - - param( [string] $hostname = "cable-wind.local", @@ -33,7 +31,6 @@ param( if($hostname -eq 'help') { echo "usage:`n`twait-on-host [help] -hostname -sleep -pingcount -max -hold `n`twait-on-host help`n`t`tthis help message`n`twait-on-host 8.8.8.8`n`t`twait on 8.8.8.8 with defaults`n`tdefaults:`n`t`thostname: cable-wind.local`n`t`tsleep: 25`n`t`tpingcount: 1`n`t`tmax: 500`n`t`thold: 30`n`tex. wait-on-host -hostname google.com -sleep 10 -pingcount 5`n"; - exit; } @@ -74,12 +71,10 @@ while(1 -eq 1) { # infinite loop sleep $sleep # sleepy time } - if($iterations -gt $max) { echo "`nMAX ITERATIONS OF $max REACHED! EXITINTG`n" exit } $iterations++ - } \ No newline at end of file