Skip to content

Commit

Permalink
Remove cargo bin if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Arzte committed Aug 11, 2020
1 parent b465142 commit cba5b72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export async function downloadFromCache(

const cargoBinPath = binPath();
core.info(`Extracting files into ${cargoBinPath}`);
await fs.unlink(cargoBinPath + crate);
await tc.extractZip(path, cargoBinPath);
} catch (error) {
core.warning(
Expand Down

0 comments on commit cba5b72

Please sign in to comment.