Minor edits to AppVeyor build scripts

This commit is contained in:
David Refoua
2022-10-15 02:47:36 +03:30
committed by GitHub
parent 489078763d
commit 9c4e4d27c8
2 changed files with 2 additions and 7 deletions

View File

@ -51,8 +51,8 @@ function Flatten-Directory($name) {
$name = Resolve-Path $name
$moving = "$($name)_moving"
Rename-Item $name -NewName $moving
$child = Resolve-Path (Get-Childitem $moving)[0]
Write-Verbose "Moving the '$child' directory to '$name'"
Write-Verbose "Flattening the '$name' directory..."
$child = (Get-Childitem $moving)[0] | Resolve-Path
Move-Item -Path $child -Destination $name
Remove-Item -Recurse $moving
}