summaryrefslogtreecommitdiff
path: root/lib/chef/pwsh.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/pwsh.rb')
-rw-r--r--lib/chef/pwsh.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/pwsh.rb b/lib/chef/pwsh.rb
index 817cf39e5a..d7604b4422 100644
--- a/lib/chef/pwsh.rb
+++ b/lib/chef/pwsh.rb
@@ -46,10 +46,10 @@ class Chef
# location, we revert these variables after the script completes.
original_dml = ENV["DOTNET_MULTILEVEL_LOOKUP"]
original_dotnet_root = ENV["DOTNET_ROOT"]
-
+
ENV["DOTNET_MULTILEVEL_LOOKUP"] = "0"
ENV["DOTNET_ROOT"] = RbConfig::CONFIG["bindir"]
-
+
super
ensure
ENV["DOTNET_MULTILEVEL_LOOKUP"] = original_dml