mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-24 10:28:10 +08:00
[Windows] Update helper name to Expand-7ZipArchive (#8875)
* [Windows] Update helper name to Expand-7ZipArchive * Fix typo
This commit is contained in:
committed by
GitHub
parent
64d5d2c1f4
commit
6efbc46fc7
@@ -14,12 +14,12 @@ $zstdParentName = [IO.Path]::GetFileNameWithoutExtension($zstdLatest)
|
||||
$filesInArchive = 7z l $zstdArchivePath | Out-String
|
||||
|
||||
if ($filesInArchive.Contains($zstdParentName)) {
|
||||
Extract-7Zip -Path $zstdArchivePath -DestinationPath $toolPath
|
||||
Expand-7ZipArchive -Path $zstdArchivePath -DestinationPath $toolPath
|
||||
Invoke-SBWithRetry -Command {
|
||||
Move-Item -Path "${zstdPath}*" -Destination $zstdPath -ErrorAction Stop
|
||||
}
|
||||
} else {
|
||||
Extract-7Zip -Path $zstdArchivePath -DestinationPath $zstdPath
|
||||
Expand-7ZipArchive -Path $zstdArchivePath -DestinationPath $zstdPath
|
||||
}
|
||||
|
||||
# Add zstd-win64 to PATH
|
||||
|
||||
Reference in New Issue
Block a user