Skip to content

Commit

Permalink
Use FullName in InstallJdk script (#58618)
Browse files Browse the repository at this point in the history
  • Loading branch information
halter73 authored Oct 25, 2024
1 parent 397ef0a commit d26729e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/scripts/InstallJdk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Expand-Archive "$tempDir/jdk.zip" -d "$tempDir/jdk/"
Write-Host "Expanded JDK to $tempDir"
Write-Host "Installing JDK to $installDir"
# The name of the file directory within the zip is based on the version, but may contain a +N for build number.
Move-Item "$tempDir/jdk/$(Get-ChildItem -Path "$tempDir/jdk" | Select-Object -First 1)/*" $installDir
Move-Item "$(Get-ChildItem -Path "$tempDir/jdk" | Select-Object -First 1 -ExpandProperty FullName)/*" $installDir
Write-Host "Done installing JDK to $installDir"

if ($env:TF_BUILD) {
Expand Down

0 comments on commit d26729e

Please sign in to comment.