3
0
Fork 0
mirror of https://gitea.com/actions/setup-go.git synced 2024-11-22 17:49:33 +01:00
This commit is contained in:
Danny McCormick 2019-06-21 14:54:30 -04:00
parent 0f39ca7c72
commit 90fdf52904
2 changed files with 4 additions and 4 deletions

View file

@ -110,10 +110,10 @@ function setGoEnvironmentVariables(goRoot) {
const goPath = process.env['GOPATH'] || ''; const goPath = process.env['GOPATH'] || '';
const goBin = process.env['GOBIN'] || ''; const goBin = process.env['GOBIN'] || '';
// set GOPATH and GOBIN as user value // set GOPATH and GOBIN as user value
if (!util.isNullOrUndefined(goPath)) { if (goPath) {
core.exportVariable('GOPATH', goPath); core.exportVariable('GOPATH', goPath);
} }
if (!util.isNullOrUndefined(goBin)) { if (goBin) {
core.exportVariable('GOBIN', goBin); core.exportVariable('GOBIN', goBin);
} }
} }

View file

@ -106,10 +106,10 @@ function setGoEnvironmentVariables(goRoot: string) {
const goBin: string = process.env['GOBIN'] || ''; const goBin: string = process.env['GOBIN'] || '';
// set GOPATH and GOBIN as user value // set GOPATH and GOBIN as user value
if (!util.isNullOrUndefined(goPath)) { if (goPath) {
core.exportVariable('GOPATH', goPath); core.exportVariable('GOPATH', goPath);
} }
if (!util.isNullOrUndefined(goBin)) { if (goBin) {
core.exportVariable('GOBIN', goBin); core.exportVariable('GOBIN', goBin);
} }
} }