Skip to content

Commit

Permalink
New-Item should force
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanhp committed Apr 21, 2023
1 parent e3322a6 commit f7d9db1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,11 +545,11 @@ function SetVHDFile
{
if ($type -eq 'Directory')
{
New-Item -Path $destinationPath -ItemType $type
New-Item -Path $destinationPath -ItemType $type -Force:$force
}
else
{
New-Item -Path $destinationPath -ItemType $type
New-Item -Path $destinationPath -ItemType $type -Force:$force
$content | Out-File $destinationPath
}

Expand Down

0 comments on commit f7d9db1

Please sign in to comment.