From 7178b978ec5c300041cac14689e12eab17e12a84 Mon Sep 17 00:00:00 2001 From: David Refoua Date: Fri, 14 Oct 2022 22:04:55 +0330 Subject: [PATCH] adjust required string double quotes --- scripts/utils.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/utils.ps1 b/scripts/utils.ps1 index b1a428e..1b6bff6 100644 --- a/scripts/utils.ps1 +++ b/scripts/utils.ps1 @@ -50,11 +50,11 @@ function Create-Archive($source, $target, $params) { function Flatten-Directory($name) { $name = Resolve-Path $name $child = (Get-Childitem $name)[0] - $moving = $($name)_moving + $moving = "$($name)_moving" Write-Verbose "Moving the '$child' directory's content to '$name'" - Rename-Item "$name" -NewName "$moving" - Move-Item -Path "$child" -Destination "$name" - Remove-Item -Recurse "$moving" + Rename-Item $name -NewName $moving + Move-Item -Path $child -Destination $name + Remove-Item -Recurse $moving } function Digest-Hash($path) {