1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-19 10:54:05 +02:00

_output folder is considered a non-prodction folder

This commit is contained in:
Keivan Beigi 2015-07-21 19:43:06 -07:00
parent 98acd0d886
commit 9b16e3b538

View File

@ -108,8 +108,19 @@ namespace NzbDrone.Common.EnvironmentInfo
} }
try
{
var currentAssmeblyLocation = typeof(RuntimeInfoBase).Assembly.Location;
if(currentAssmeblyLocation.ToLower().Contains("_output"))return false;
}
catch
{
}
string lowerCurrentDir = Directory.GetCurrentDirectory().ToLower(); string lowerCurrentDir = Directory.GetCurrentDirectory().ToLower();
if (lowerCurrentDir.Contains("teamcity")) return false; if (lowerCurrentDir.Contains("teamcity")) return false;
if (lowerCurrentDir.Contains("_output")) return false;
if (lowerCurrentDir.StartsWith("/run/")) return false; if (lowerCurrentDir.StartsWith("/run/")) return false;
return true; return true;