Skip to content

Commit

Permalink
expand environment variables in environment variable values
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysogorskiy Aleksey committed Jul 12, 2018
1 parent e7c939e commit 74ac649
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Paket.Core/Common/ProcessHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ let findFile dirs file =

/// Retrieves the environment variable or None
let environVarOrNone name =
let var = Environment.GetEnvironmentVariable name
let var = name
|> Environment.GetEnvironmentVariable
|> Environment.ExpandEnvironmentVariables

if String.IsNullOrEmpty var then None
else Some var

Expand Down

0 comments on commit 74ac649

Please sign in to comment.