mirror of https://github.com/actions/toolkit
parent
340a6b15b5
commit
b2444c0f7c
|
@ -76,7 +76,7 @@ export async function tryGetExecutablePath(
|
||||||
let stats: fs.Stats | undefined = undefined
|
let stats: fs.Stats | undefined = undefined
|
||||||
try {
|
try {
|
||||||
// test file exists
|
// test file exists
|
||||||
stats = await stat(filePath)
|
stats = await lstat(filePath)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.code !== 'ENOENT') {
|
if (err.code !== 'ENOENT') {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
|
@ -106,7 +106,7 @@ export async function tryGetExecutablePath(
|
||||||
|
|
||||||
stats = undefined
|
stats = undefined
|
||||||
try {
|
try {
|
||||||
stats = await stat(filePath)
|
stats = await lstat(filePath)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.code !== 'ENOENT') {
|
if (err.code !== 'ENOENT') {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
|
|
Loading…
Reference in New Issue