mirror of
https://github.com/actions/node-versions.git
synced 2025-01-11 10:35:20 +00:00
16 lines
336 B
PowerShell
16 lines
336 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
Unpack *.tar file
|
|
#>
|
|
function Extract-TarArchive {
|
|
param(
|
|
[Parameter(Mandatory=$true)]
|
|
[String]$ArchivePath,
|
|
[Parameter(Mandatory=$true)]
|
|
[String]$OutputDirectory
|
|
)
|
|
|
|
Write-Debug "Extract $ArchivePath to $OutputDirectory"
|
|
tar -C $OutputDirectory -xzf $ArchivePath --strip 1
|
|
|
|
} |