mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 12:32:31 +01:00
_output folder is considered a non-prodction folder
This commit is contained in:
parent
98acd0d886
commit
9b16e3b538
@ -106,10 +106,21 @@ private static bool InternalIsProduction()
|
|||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user