diff options
author | Tim <contact@bytim.eu> | 2025-01-03 23:42:00 +0100 |
---|---|---|
committer | Tim <contact@bytim.eu> | 2025-01-03 23:42:00 +0100 |
commit | 69e78f48d829a48672e42423686c9d826f7aa7d8 (patch) | |
tree | 0a36bd6132efc439a2098e78510f4b61a0d51d35 | |
parent | ad66e2f3a9bb2c4d2a7566151d75986d459c4e5b (diff) | |
download | GitAutoFetch-69e78f48d829a48672e42423686c9d826f7aa7d8.tar.xz GitAutoFetch-69e78f48d829a48672e42423686c9d826f7aa7d8.zip |
Load environment variables also from system
-rw-r--r-- | Program.cs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,8 +1,11 @@ -using System.Diagnostics; +using System.Collections; +using System.Diagnostics; using dotenv.net; DotEnv.Load(); var envVars = DotEnv.Read(); +foreach (DictionaryEntry entry in Environment.GetEnvironmentVariables()) + envVars[entry.Key.ToString()!] = entry.Value!.ToString()!; while (true) { |