Skip to content

Commit

Permalink
api/hyperv-winrm/vhd.go:
Browse files Browse the repository at this point in the history
  • Loading branch information
fsdrw08 authored Feb 2, 2024
1 parent 7c991c6 commit 0340708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/hyperv-winrm/vhd.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function Expand-Downloads {
$vhdPath = Get-ChildItem $tempPath *"Virtual Hard Disks"* -Recurse -Directory
if ($vhdPath -and Test-Path $($vhdPath.FullName)) {
if ($vhdPath -and (Test-Path $($vhdPath.FullName))) {
Move-Item "$($vhdPath.FullName)\*.*" $FolderPath
} else {
Move-Item "$tempPath\*.*" $FolderPath
Expand All @@ -145,7 +145,7 @@ function Expand-Downloads {
$vhdPath = Get-ChildItem $tempPath *"Virtual Hard Disks"* -Recurse -Directory
if ($vhdPath -and Test-Path $($vhdPath.FullName)) {
if ($vhdPath -and (Test-Path $($vhdPath.FullName))) {
Move-Item "$($vhdPath.FullName)\*.*" $FolderPath
} else {
Move-Item "$tempPath\*.*" $FolderPath
Expand Down

0 comments on commit 0340708

Please sign in to comment.