From 61579cfb7ea96ebcecff8d0b835d630be31dc5fe Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Wed, 4 Jan 2017 12:07:02 -0800 Subject: [PATCH] Consider /buildAgent/ to be a none production startup path --- src/NzbDrone.Common/EnvironmentInfo/RuntimeInfo.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NzbDrone.Common/EnvironmentInfo/RuntimeInfo.cs b/src/NzbDrone.Common/EnvironmentInfo/RuntimeInfo.cs index 623c6baeb..a53862311 100644 --- a/src/NzbDrone.Common/EnvironmentInfo/RuntimeInfo.cs +++ b/src/NzbDrone.Common/EnvironmentInfo/RuntimeInfo.cs @@ -97,6 +97,7 @@ namespace NzbDrone.Common.EnvironmentInfo var lowerCurrentDir = Directory.GetCurrentDirectory().ToLower(); if (lowerCurrentDir.Contains("teamcity")) return false; + if (lowerCurrentDir.Contains("buildagent")) return false; if (lowerCurrentDir.Contains("_output")) return false; return true;