mirror of
https://github.com/actions/node-versions.git
synced 2025-01-11 18:45:19 +00:00
15 lines
336 B
PowerShell
15 lines
336 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
Unpack *.7z file
|
|
#>
|
|
function Extract-7ZipArchive {
|
|
param(
|
|
[Parameter(Mandatory=$true)]
|
|
[String]$ArchivePath,
|
|
[Parameter(Mandatory=$true)]
|
|
[String]$OutputDirectory
|
|
)
|
|
|
|
Write-Debug "Extract $ArchivePath to $OutputDirectory"
|
|
7z x $ArchivePath -o"$OutputDirectory" -y | Out-Null
|
|
} |