mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-06 23:16:07 +00:00
Warn about redirected streams in the CLI only when running inside Docker (#1176)
This commit is contained in:
9
DiscordChatExporter.Core/Utils/Docker.cs
Normal file
9
DiscordChatExporter.Core/Utils/Docker.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace DiscordChatExporter.Core.Utils;
|
||||
|
||||
public static class Docker
|
||||
{
|
||||
public static bool IsRunningInDocker { get; } =
|
||||
Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER") == "true";
|
||||
}
|
||||
Reference in New Issue
Block a user