3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-22 01:59:32 +01:00
This commit is contained in:
Bryan MacFarlane 2020-05-03 18:34:17 -04:00
parent 6a1b66a606
commit 8e221092f3

View file

@ -74,6 +74,11 @@ export async function getNode(
//
// Extract
//
console.log(`Extracting ${downloadPath}`)
if (!fs.existsSync(downloadPath)) {
throw new Error('File not downloaded correctly');
}
let extPath: string;
if (osPlat == 'win32') {
let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe');