mirror of
https://gitea.com/actions/setup-node.git
synced 2025-08-11 06:15:56 +08:00
strip 1 on fallback extract
This commit is contained in:
@@ -77,7 +77,11 @@ export async function getNode(
|
||||
let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe');
|
||||
extPath = await tc.extract7z(downloadPath, undefined, _7zPath);
|
||||
} else {
|
||||
extPath = await tc.extractTar(downloadPath);
|
||||
extPath = await tc.extractTar(downloadPath, undefined, [
|
||||
'xz',
|
||||
'--strip',
|
||||
'1'
|
||||
]);
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user