Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #211 from Frassle/awaitmkdirp
await io.mkdirP
  • Loading branch information
Brian Cristante authored and GitHub committed Mar 28, 2022
2 parents 8e9a229 + 13df686 commit a5865a9
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 @@ -2127,12 +2127,12 @@ function addBinToPath() {
if (!fs_1.default.existsSync(gp)) {
// some of the hosted images have go install but not profile dir
core.debug(`creating ${gp}`);
io.mkdirP(gp);
yield io.mkdirP(gp);
}
let bp = path_1.default.join(gp, 'bin');
if (!fs_1.default.existsSync(bp)) {
core.debug(`creating ${bp}`);
io.mkdirP(bp);
yield io.mkdirP(bp);
}
core.addPath(bp);
added = true;
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Expand Up @@ -73,13 +73,13 @@ export async function addBinToPath(): Promise<boolean> {
if (!fs.existsSync(gp)) {
// some of the hosted images have go install but not profile dir
core.debug(`creating ${gp}`);
io.mkdirP(gp);
await io.mkdirP(gp);
}

let bp = path.join(gp, 'bin');
if (!fs.existsSync(bp)) {
core.debug(`creating ${bp}`);
io.mkdirP(bp);
await io.mkdirP(bp);
}

core.addPath(bp);
Expand Down

0 comments on commit a5865a9

Please sign in to comment.