From 19c6612a4709694630471a3de685dbe955dbe12d Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Sun, 2 Feb 2025 18:25:46 +0530 Subject: Optimize the tests --- MAS/Separate-Files-Version/Activators/HWID_Activation.cmd | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'MAS/Separate-Files-Version/Activators/HWID_Activation.cmd') diff --git a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd index bb33f73..49d0415 100644 --- a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd @@ -632,12 +632,8 @@ licensing.mp.microsoft.com/v7.0/licenses/content login.live.com/ppsecure/deviceaddcredential.srf purchase.mp.microsoft.com/v7.0/users/me/orders ) do if not defined resfail ( -%psc% "try { !tls! irm https://%%# -Method POST } catch { if ($_.Exception.Response -eq $null) { exit 3 } }" -if !errorlevel!==3 ( -echo: -set resfail=1 -%psc% "try { !tls! irm https://%%# -Method POST } catch { Write-Host """"[%%#] $($_.Exception.Message)"""" -ForegroundColor Red -BackgroundColor Black }" -) +%psc% "try { !tls! irm https://%%# -Method POST } catch { if ($_.Exception.Response -eq $null) { Write-Host """"[%%#] $($_.Exception.Message)"""" -ForegroundColor Red -BackgroundColor Black; exit 3 } }" +if !errorlevel!==3 set resfail=1 ) ) -- cgit v1.2.3