From 8e36002ae70004d318953cbe81ccb595a21ed4fc Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Fri, 29 Dec 2023 00:17:11 +0200 Subject: [PATCH] Slightly better naming --- DiscordChatExporter.Cli/Commands/Base/DiscordCommandBase.cs | 2 +- DiscordChatExporter.Core/Utils/Docker.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"; }