diff options
author | Vivek Singh <vivek.singh@msystechnologies.com> | 2019-05-07 16:29:10 +0530 |
---|---|---|
committer | Vivek Singh <vivek.singh@msystechnologies.com> | 2019-05-07 16:29:10 +0530 |
commit | 3b1f25bcc97a66adaa9514a59ccbee08cd0baf27 (patch) | |
tree | 6ea2fc56356add004ec5702ebbd6a5741167c4fa | |
parent | 9c4f1d3073866989f0822debd64866f146df7878 (diff) | |
download | chef-3b1f25bcc97a66adaa9514a59ccbee08cd0baf27.tar.gz |
Fix win create temp dir
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r-- | lib/chef/knife/bootstrap/train_connector.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/knife/bootstrap/train_connector.rb b/lib/chef/knife/bootstrap/train_connector.rb index df94290dbf..f1b4816049 100644 --- a/lib/chef/knife/bootstrap/train_connector.rb +++ b/lib/chef/knife/bootstrap/train_connector.rb @@ -28,8 +28,7 @@ class Chef MKTEMP_WIN_COMMAND = <<~EOM.freeze $parent = [System.IO.Path]::GetTempPath(); [string] $name = [System.Guid]::NewGuid(); - $tmp = New-Item -ItemType Directory -Path; - (Join-Path $parent $name); + $tmp = New-Item -ItemType Directory -Path (Join-Path $parent $name); $tmp.FullName EOM |