adjust required string double quotes

This commit is contained in:
David Refoua 2022-10-14 22:04:55 +03:30 committed by GitHub
parent ee01f26680
commit 7178b978ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,11 +50,11 @@ function Create-Archive($source, $target, $params) {
function Flatten-Directory($name) { function Flatten-Directory($name) {
$name = Resolve-Path $name $name = Resolve-Path $name
$child = (Get-Childitem $name)[0] $child = (Get-Childitem $name)[0]
$moving = $($name)_moving $moving = "$($name)_moving"
Write-Verbose "Moving the '$child' directory's content to '$name'" Write-Verbose "Moving the '$child' directory's content to '$name'"
Rename-Item "$name" -NewName "$moving" Rename-Item $name -NewName $moving
Move-Item -Path "$child" -Destination "$name" Move-Item -Path $child -Destination $name
Remove-Item -Recurse "$moving" Remove-Item -Recurse $moving
} }
function Digest-Hash($path) { function Digest-Hash($path) {