Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
casing
  • Loading branch information
Bryan MacFarlane committed Feb 10, 2020
1 parent a6a701e commit 7ea80d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Expand Up @@ -1296,12 +1296,12 @@ function run() {
if (!installDir) {
console.log(`A version satisfying ${versionSpec} not found locally, attempting to download ...`);
installDir = yield installer.downloadGo(versionSpec, stable);
console.log('installed');
console.log('Installed');
}
if (installDir) {
core.exportVariable('GOROOT', installDir);
core.addPath(path.join(installDir, 'bin'));
console.log('added to the path');
console.log('Added go to the path');
}
else {
throw new Error(`Could not find a version that satisfied version spec: ${versionSpec}`);
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Expand Up @@ -27,13 +27,13 @@ export async function run() {
`A version satisfying ${versionSpec} not found locally, attempting to download ...`
);
installDir = await installer.downloadGo(versionSpec, stable);
console.log('installed');
console.log('Installed');
}

if (installDir) {
core.exportVariable('GOROOT', installDir);
core.addPath(path.join(installDir, 'bin'));
console.log('added to the path');
console.log('Added go to the path');
} else {
throw new Error(
`Could not find a version that satisfied version spec: ${versionSpec}`
Expand Down

0 comments on commit 7ea80d8

Please sign in to comment.