1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-node synced 2025-06-19 01:50:26 +02:00

strip 1 on fallback extract

This commit is contained in:
Bryan MacFarlane 2020-05-02 16:26:50 -04:00
parent ed3a918d25
commit 2bdb2ab1c9
5 changed files with 52 additions and 18 deletions

View file

@ -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'
]);
}
//