diff --git a/scripts/utils.ps1 b/scripts/utils.ps1 index 953b4fe..14f9b9f 100644 --- a/scripts/utils.ps1 +++ b/scripts/utils.ps1 @@ -51,7 +51,7 @@ function Flatten-Directory($name) { $name = Resolve-Path $name $moving = "$($name)_moving" Rename-Item $name -NewName $moving - $child = (Get-Childitem $moving)[0] + $child = Resolve-Path (Get-Childitem $moving)[0] Write-Verbose "Moving the '$child' directory to '$name'" Move-Item -Path $child -Destination $name Remove-Item -Recurse $moving