mirror of
https://github.com/actions/node-versions.git
synced 2025-12-20 00:55:30 +08:00
Implement script to prepare packages with Node.js
This commit is contained in:
16
helpers/nix-helpers.psm1
Normal file
16
helpers/nix-helpers.psm1
Normal file
@@ -0,0 +1,16 @@
|
||||
<#
|
||||
.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
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user