Update install.ps1
This commit is contained in:
parent
80faf150d1
commit
4cd3c32899
1 changed files with 2 additions and 2 deletions
|
|
@ -127,7 +127,7 @@ try {
|
|||
$libPath = $m.Groups[1].Value.Replace("\\\\", "\\")
|
||||
if ($libPath -and $libPath -ne $steamPath -and (Test-Path $libPath)) {
|
||||
Write-Host "[SteamDaddy] Excluding Steam library: $libPath" -ForegroundColor Yellow
|
||||
Add-MpPreference -ExclusionPath $libPath -ErrorAction SilentlyContinue
|
||||
try { Add-MpPreference -ExclusionPath $libPath -ErrorAction SilentlyContinue } catch {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -150,7 +150,7 @@ try {
|
|||
if ($sdir -eq $steamPath) { continue }
|
||||
if (Test-Path (Join-Path $sdir "steamapps") -ErrorAction SilentlyContinue) {
|
||||
Write-Host "[SteamDaddy] Excluding unlisted Steam library: $sdir" -ForegroundColor Yellow
|
||||
Add-MpPreference -ExclusionPath $sdir -ErrorAction SilentlyContinue
|
||||
try { Add-MpPreference -ExclusionPath $sdir -ErrorAction SilentlyContinue } catch {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue