mirror of
https://gitea.com/actions/setup-node.git
synced 2025-07-10 06:09:10 +08:00
dbg
This commit is contained in:
@ -74,11 +74,11 @@ export async function getNode(
|
||||
//
|
||||
// Extract
|
||||
//
|
||||
console.log(`Extracting ${downloadPath}`)
|
||||
console.log(`Extracting ${downloadPath}`);
|
||||
if (!fs.existsSync(downloadPath)) {
|
||||
throw new Error('File not downloaded correctly');
|
||||
console.log('File not downloaded correctly');
|
||||
}
|
||||
|
||||
|
||||
let extPath: string;
|
||||
if (osPlat == 'win32') {
|
||||
let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe');
|
||||
@ -90,7 +90,7 @@ export async function getNode(
|
||||
if (fs.existsSync(nestedPath)) {
|
||||
extPath = nestedPath;
|
||||
}
|
||||
|
||||
|
||||
console.log(`using ${extPath}`);
|
||||
} else {
|
||||
extPath = await tc.extractTar(downloadPath, undefined, [
|
||||
|
Reference in New Issue
Block a user