Skip to content

Commit

Permalink
downloadRepository(): await the result of recursive deletions
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Oct 31, 2020
1 parent 8812d4a commit db75315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github-api-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function downloadRepository(
} else {
await toolCache.extractTar(archivePath, extractPath)
}
io.rmRF(archivePath)
await io.rmRF(archivePath)

// Determine the path of the repository content. The archive contains
// a top-level folder and the repository content is inside.
Expand All @@ -70,7 +70,7 @@ export async function downloadRepository(
await io.mv(sourcePath, targetPath)
}
}
io.rmRF(extractPath)
await io.rmRF(extractPath)
}

/**
Expand Down

0 comments on commit db75315

Please sign in to comment.