Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chazragg committed Nov 26, 2023
1 parent d93b37b commit 924b36f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/hyperv-winrm/vhd.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function Expand-Downloads {
}
if (Test-Path $($vhdPath.FullName)) {
Move-Item $($vhdPath.FullName)\*.* $FolderPath
Move-Item "$($vhdPath.FullName)\*.*" $FolderPath
} else {
Move-Item "$tempPath\*.*" $FolderPath
}
Expand All @@ -117,8 +117,8 @@ function Expand-Downloads {
$command = """$7zPath"" x ""$($_.FullName)"" -o""$tempPath"""
& cmd.exe /C $command
if (Test-Path $($vhdPath.FullName)) {
Move-Item $"($vhdPath.FullName)\*.*" $FolderPath
if (Test-Path $($vhdPath.FullName)) {
Move-Item "$($vhdPath.FullName)\*.*" $FolderPath
} else {
Move-Item "$tempPath\*.*" $FolderPath
}
Expand All @@ -140,7 +140,7 @@ function Expand-Downloads {
$command = """$tarPath"" -C ""$tempPath"" -x -f ""$($_.FullName)"""
& cmd.exe /C $command
if (Test-Path $($vhdPath.FullName)) {
if (Test-Path $($vhdPath.FullName)) {
Move-Item "$($vhdPath.FullName)\*.*" $FolderPath
} else {
Move-Item "$tempPath\*.*" $FolderPath
Expand Down

0 comments on commit 924b36f

Please sign in to comment.