Fix script block, print homepage info

This commit is contained in:
2025-08-10 04:24:34 +05:30
parent 8de888f52f
commit 1d4c5a232a

View File

@@ -1,5 +1,12 @@
# This script is hosted on <b>https://get.activated.win</b> for <b>https://massgrave.dev</b><hr><pre>
if (-not $args) {
Write-Host 'Homepage:' -ForegroundColor White -BackgroundColor DarkGreen -NoNewline
Write-Host ' ' -NoNewline
Write-Host 'https://massgrave.dev' -ForegroundColor White -BackgroundColor Blue
}
& {
$psv = (Get-Host).Version.Major
$troubleshoot = 'https://massgrave.dev/troubleshoot'
@@ -120,3 +127,4 @@ if ($psv -lt 3) {
$FilePaths = @("$env:SystemRoot\Temp\MAS*.cmd", "$env:USERPROFILE\AppData\Local\Temp\MAS*.cmd")
foreach ($FilePath in $FilePaths) { Get-Item $FilePath -ErrorAction SilentlyContinue | Remove-Item }
} @args