summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWindowsAddict2024-08-15 00:11:20 +0000
committerGitHub2024-08-15 00:11:20 +0000
commit5459c9f1296d1cfe0bf04327e9c63d0faac2c9c9 (patch)
tree138e509d448dfb5f897834a4781fdc98d8b42d48
parentde6bdbf67f257b650eb616c241b5542f2d2625ff (diff)
parentbc3143e87c30d46f4ca3541b8b1e262d8a11e384 (diff)
downloadmassgravel.github.io-5459c9f1296d1cfe0bf04327e9c63d0faac2c9c9.zip
Merge pull request #3 from ave9858/fallback
fix fallback URL and format script
-rw-r--r--get4
1 files changed, 2 insertions, 2 deletions
diff --git a/get b/get
index ff86733..1207865 100644
--- a/get
+++ b/get
@@ -2,7 +2,7 @@
$ErrorActionPreference = "Stop"
# Enable TLSv1.2 for compatibility with older clients for current session
-[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$DownloadURL1 = 'https://raw.githubusercontent.com/massgravel/Microsoft-Activation-Scripts/35e044ddc85eed60b27b37c48371bd19cdc678b7/MAS/All-In-One-Version/MAS_AIO-CRC32_8C3AA7E0.cmd'
$DownloadURL2 = 'https://bitbucket.org/WindowsAddict/microsoft-activation-scripts/raw/35e044ddc85eed60b27b37c48371bd19cdc678b7/MAS/All-In-One-Version/MAS_AIO-CRC32_8C3AA7E0.cmd'
@@ -12,7 +12,7 @@ $RandomURL1 = Get-Random -InputObject $URLs
$RandomURL2 = ($URLs -ne $RandomURL1)[0]
try {
- $response = Invoke-WebRequest -Uri $RandomURL1 -UseBasicParsing
+ $response = Invoke-WebRequest -Uri $RandomURL1 -UseBasicParsing
}
catch {
$response = Invoke-WebRequest -Uri $RandomURL2 -UseBasicParsing