diff --git a/DiscordChatExporter.Cli/Commands/Base/DiscordCommandBase.cs b/DiscordChatExporter.Cli/Commands/Base/DiscordCommandBase.cs index c02b411..760c093 100644 --- a/DiscordChatExporter.Cli/Commands/Base/DiscordCommandBase.cs +++ b/DiscordChatExporter.Cli/Commands/Base/DiscordCommandBase.cs @@ -48,7 +48,7 @@ public abstract class DiscordCommandBase : ICommand #pragma warning restore CS0618 // Note about interactivity for Docker - if (console.IsOutputRedirected && Docker.IsRunningInDocker) + if (console.IsOutputRedirected && Docker.IsRunningInContainer) { console.Error.WriteLine( "Note: Output streams are redirected, rich console interactions are disabled. " diff --git a/DiscordChatExporter.Core/Utils/Docker.cs b/DiscordChatExporter.Core/Utils/Docker.cs index 63eb147..36c7154 100644 --- a/DiscordChatExporter.Core/Utils/Docker.cs +++ b/DiscordChatExporter.Core/Utils/Docker.cs @@ -4,6 +4,6 @@ namespace DiscordChatExporter.Core.Utils; public static class Docker { - public static bool IsRunningInDocker { get; } = + public static bool IsRunningInContainer { get; } = Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER") == "true"; }