From 74ac6498101f3f1cf5e84c3a7320ed02c3146e05 Mon Sep 17 00:00:00 2001 From: Lysogorskiy Aleksey Date: Thu, 12 Jul 2018 11:59:03 +0300 Subject: [PATCH] expand environment variables in environment variable values --- src/Paket.Core/Common/ProcessHelper.fs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Paket.Core/Common/ProcessHelper.fs b/src/Paket.Core/Common/ProcessHelper.fs index 9d060bb56f..a352b922e3 100644 --- a/src/Paket.Core/Common/ProcessHelper.fs +++ b/src/Paket.Core/Common/ProcessHelper.fs @@ -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