mirror of
https://github.com/actions/node-versions.git
synced 2025-07-01 04:47:16 +08:00
16 lines
319 B
PowerShell
16 lines
319 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
Unpack *.7z file
|
|
#>
|
|
function Unpack-7ZipArchive {
|
|
param(
|
|
[Parameter(Mandatory=$true)]
|
|
[String]$ArchivePath,
|
|
[Parameter(Mandatory=$true)]
|
|
[String]$OutputDirectory
|
|
)
|
|
|
|
Write-Debug "Unpack $ArchivePath to $OutputDirectory"
|
|
7z x $ArchivePath -o$OutputDirectory
|
|
|
|
} |