Updated install-powershell.ps1

This commit is contained in:
Markus Fleschutz 2025-04-30 17:12:54 +02:00
parent a4fa175203
commit 5febddcaf5

View File

@ -378,7 +378,7 @@ try {
} elseif ($IsMacOSEnv) { } elseif ($IsMacOSEnv) {
$packageName = "powershell-${release}-osx-${architecture}.tar.gz" $packageName = "powershell-${release}-osx-${architecture}.tar.gz"
} }
Write-Host " Latest release is $release for $architecture, package name is: $packageName" Write-Host " Latest release is $release for $architecture (package name: $packageName)"
$downloadURL = "https://github.com/PowerShell/PowerShell/releases/download/v${release}/${packageName}" $downloadURL = "https://github.com/PowerShell/PowerShell/releases/download/v${release}/${packageName}"
Write-Host "⏳ (2/5) Loading $downloadURL" Write-Host "⏳ (2/5) Loading $downloadURL"
@ -424,8 +424,8 @@ try {
Expand-ArchiveInternal -Path $packagePath -DestinationPath $contentPath Expand-ArchiveInternal -Path $packagePath -DestinationPath $contentPath
} }
} else { } else {
Write-Host "⏳ (3/5) Extracting package to $contentPath..." Write-Host "⏳ (3/5) Extracting to $contentPath..."
tar zxf $packagePath -C $contentPath & tar zxf $packagePath -C $contentPath
} }
} }