SickBeard warns about SABnzbd+ scripts, doesn't delete

Behavioral change since it's possible that these scripts are being
used by CouchPotato as well
This commit is contained in:
Iristyle
2012-11-04 11:55:09 -05:00
parent fba8dcf8df
commit d2519cc82c
2 changed files with 2 additions and 8 deletions

View File

@@ -87,13 +87,7 @@ try {
# found a legit scripts dir, so delete SickBeard files
if ($scriptsDir -and ($scriptsDir -ne "`"`"") -and (Test-Path $scriptsDir))
{
Write-Host "Found SABnzbd+ script_dir $scriptsDir"
$sickbeardScripts = 'autoProcessTV.cfg', 'autoProcessTV.cfg.sample',
'autoProcessTV.py', 'hellaToSickBeard.py', 'sabToSickBeard.py'
Write-Host "Removing SickBeard scripts $sickbeardScripts"
Get-ChildItem -Path $scriptsDir -Include $sickbeardScripts -Recurse |
Remove-Item -Force
Write-Warning "SABnzbd+ post-processing scripts at $scriptsDir must be deleted manually"
}
$tv = $sabconfig.categories.tv