fix: try get value
Signed-off-by: Polianin Nikita <wesser@noreply.git.winsomnia.net>
This commit is contained in:
parent
7e82d4a520
commit
2f7c77e764
@ -61,7 +61,8 @@ public static class EnvironmentConfiguration
|
||||
result.AddInMemoryCollection(LoadEnvironment(".env.develop")!);
|
||||
#endif
|
||||
|
||||
Environment.SetEnvironmentVariable("PATH_TO_SAVE", variablesFromFile["PATH_TO_SAVE"]);
|
||||
if (variablesFromFile.TryGetValue("PATH_TO_SAVE", out var data))
|
||||
Environment.SetEnvironmentVariable("PATH_TO_SAVE", variablesFromFile["PATH_TO_SAVE"]);
|
||||
|
||||
return result.Build();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user