diff options
| author | WindowsAddict | 2024-09-28 22:20:41 +0000 |
|---|---|---|
| committer | WindowsAddict | 2024-09-28 22:20:41 +0000 |
| commit | e28fbe01ee7b2c1910fa6bde2445e6bafac617f0 (patch) | |
| tree | 86c3743e1f8e08ba5b3139b914a1562ba12148bb /static | |
| parent | 50d2da34315751c265ece0e6c322cf20182cc3ae (diff) | |
| download | massgrave.dev-e28fbe01ee7b2c1910fa6bde2445e6bafac617f0.zip | |
Add self-hosted Git repo
Diffstat (limited to 'static')
| -rw-r--r-- | static/get.ps1 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/static/get.ps1 b/static/get.ps1 index 5ef6ad4..6925598 100644 --- a/static/get.ps1 +++ b/static/get.ps1 @@ -12,15 +12,21 @@ write-host $DownloadURL1 = 'https://raw.githubusercontent.com/massgravel/Microsoft-Activation-Scripts/52d4c52dba8e29a3c1fb295c8946dbe6cf2f0239/MAS/All-In-One-Version-KL/MAS_AIO.cmd'
$DownloadURL2 = 'https://dev.azure.com/massgrave/Microsoft-Activation-Scripts/_apis/git/repositories/Microsoft-Activation-Scripts/items?path=/MAS/All-In-One-Version-KL/MAS_AIO.cmd&versionType=Commit&version=52d4c52dba8e29a3c1fb295c8946dbe6cf2f0239'
+$DownloadURL3 = 'https://git.activated.win/massgrave/Microsoft-Activation-Scripts/raw/commit/52d4c52dba8e29a3c1fb295c8946dbe6cf2f0239/MAS/All-In-One-Version-KL/MAS_AIO.cmd'
-$URLs = @($DownloadURL1, $DownloadURL2)
+$URLs = @($DownloadURL1, $DownloadURL2, $DownloadURL3)
$ShuffledURLs = $URLs | Sort-Object { Get-Random }
try {
$response = Invoke-WebRequest -Uri $ShuffledURLs[0] -UseBasicParsing
}
catch {
- $response = Invoke-WebRequest -Uri $ShuffledURLs[1] -UseBasicParsing
+ try {
+ $response = Invoke-WebRequest -Uri $ShuffledURLs[1] -UseBasicParsing
+ }
+ catch {
+ $response = Invoke-WebRequest -Uri $ShuffledURLs[2] -UseBasicParsing
+ }
}
# Verify script integrity
|
