From 0919914dac7bd54be40c700a2f434b0a5391eeda Mon Sep 17 00:00:00 2001 From: Kevin Woley Date: Sun, 9 May 2021 20:35:06 -0700 Subject: [PATCH] internet connection test fix for PowerShell 7.1 resolves #37 --- backup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.ps1 b/backup.ps1 index 6e8aabd..4243f53 100644 --- a/backup.ps1 +++ b/backup.ps1 @@ -266,7 +266,7 @@ function Invoke-ConnectivityCheck { Write-Output "[[Internet]] Waiting for internet connectivity... $sleep_count" | Tee-Object -Append $SuccessLog Start-Sleep 30 } - elseif(!(Test-Connection -Server $repository_host -Quiet)) { + elseif(!(Test-Connection -ComputerName $repository_host -Quiet)) { Write-Output "[[Internet]] Waiting for connection to repository ($repository_host)... $sleep_count" | Tee-Object -Append $SuccessLog Start-Sleep 30 }