From 5831fa49773f7b5f426f6e771f2c98e9164830f1 Mon Sep 17 00:00:00 2001 From: David Refoua Date: Sat, 15 Oct 2022 01:47:22 +0330 Subject: [PATCH] resolve child path --- scripts/utils.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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