From 3e014ec8a4a6fede8e3911775029f4ce876fb0e5 Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Thu, 26 Mar 2020 12:23:38 -0400 Subject: [PATCH] lint --- dist/index.js | 4 +++- src/main.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 1de8d7b..fee1cca 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1308,7 +1308,7 @@ function run() { console.log('Added go to the path'); // if the global installed bin wasn't added, // we can add the bin just installed - if (!addBinToPath) { + if (!addedBin) { addBinToPath(); } } @@ -1331,8 +1331,10 @@ function addBinToPath() { let buf = cp.execSync('go env GOPATH'); if (buf) { let d = buf.toString().trim(); + core.debug(`go env GOPATH: ${d}`); let bp = path.join(d, 'bin'); if (fs.existsSync(bp)) { + core.debug(`${bp} exists`); core.addPath(bp); added = true; } diff --git a/src/main.ts b/src/main.ts index 4e6b53d..9431d05 100644 --- a/src/main.ts +++ b/src/main.ts @@ -67,7 +67,7 @@ function addBinToPath(): boolean { let d = buf.toString().trim(); core.debug(`go env GOPATH: ${d}`); let bp = path.join(d, 'bin'); - + if (fs.existsSync(bp)) { core.debug(`${bp} exists`); core.addPath(bp);