From de6bdbf67f257b650eb616c241b5542f2d2625ff Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Thu, 15 Aug 2024 05:35:56 +0530 Subject: [PATCH] Fix $RandomURL2 --- get | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get b/get index e020c9a..ff86733 100644 --- a/get +++ b/get @@ -9,13 +9,13 @@ $DownloadURL2 = 'https://bitbucket.org/WindowsAddict/microsoft-activation-script $URLs = @($DownloadURL1, $DownloadURL2) $RandomURL1 = Get-Random -InputObject $URLs -$RandomURL2 = $URLs -ne $RandomURL1 +$RandomURL2 = ($URLs -ne $RandomURL1)[0] try { $response = Invoke-WebRequest -Uri $RandomURL1 -UseBasicParsing } catch { - $response = Invoke-WebRequest -Uri $RandomURL2 -UseBasicParsing + $response = Invoke-WebRequest -Uri $RandomURL2 -UseBasicParsing } $rand = [Guid]::NewGuid().Guid