From 924b36f00ca81dd1030684e539a9481e11411c42 Mon Sep 17 00:00:00 2001 From: chazragg Date: Sun, 26 Nov 2023 00:16:37 +0000 Subject: [PATCH] Fixed formatting --- api/hyperv-winrm/vhd.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/hyperv-winrm/vhd.go b/api/hyperv-winrm/vhd.go index e6596d30..907bc0b6 100644 --- a/api/hyperv-winrm/vhd.go +++ b/api/hyperv-winrm/vhd.go @@ -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 } @@ -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 } @@ -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