From 8ee8c5ba5aa545ba78126962b87c67afeb153264 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Sat, 19 Feb 2022 13:17:51 +0100 Subject: [PATCH] Update winget-upgrade.ps1 --- Winget-AutoUpdate/winget-upgrade.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Winget-AutoUpdate/winget-upgrade.ps1 b/Winget-AutoUpdate/winget-upgrade.ps1 index a0e0e44..77725fb 100644 --- a/Winget-AutoUpdate/winget-upgrade.ps1 +++ b/Winget-AutoUpdate/winget-upgrade.ps1 @@ -94,8 +94,7 @@ function Test-Network { try{ Invoke-RestMethod -Uri "https://api.github.com/zen" Write-Log "Connected !" "Green" - $ping = $true - return $ping + return $true } catch{ Start-Sleep 10