From a4fa175203ff2e99b398bcd459dd852586142e20 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 30 Apr 2025 17:07:58 +0200 Subject: [PATCH] Updated install-powershell.ps1 --- scripts/install-powershell.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install-powershell.ps1 b/scripts/install-powershell.ps1 index 90cba07b..3cf7e3bf 100755 --- a/scripts/install-powershell.ps1 +++ b/scripts/install-powershell.ps1 @@ -438,18 +438,18 @@ try { } if (Test-Path $Destination) { - Write-Host "⏳ (4/5) Copying files to $Destination... " + Write-Host "⏳ (5/5) Copying files to $Destination... " # only copy files as folders will already exist at $Destination Get-ChildItem -Recurse -Path "$contentPath" -File | ForEach-Object { $DestinationFilePath = Join-Path $Destination $_.fullname.replace($contentPath, "") Copy-Item $_.fullname -Destination $DestinationFilePath } } elseif ($IsWinEnv) { - Write-Host "⏳ (4/5) Moving new installation to $Destination... " + Write-Host "⏳ (5/5) Moving new installation to $Destination... " $null = New-Item -Path (Split-Path -Path $Destination -Parent) -ItemType Directory -ErrorAction SilentlyContinue Move-Item -Path $contentPath -Destination $Destination } else { - Write-Host "⏳ (4/5) Moving new installation to $Destination... " + Write-Host "⏳ (5/5) Moving new installation to $Destination... " & sudo mv "$contentPath" "$Destination" } }