Skip to content

Commit

Permalink
fix(windows): remove unix placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Jun 7, 2024
1 parent 1291a5a commit 9eb4d2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ async function link ({ depBin, version }) {
let localBin = path.resolve(path.join(__dirname, '..', 'bin', 'ipfs'))

if (isWin) {
if (fs.existsSync(localBin)) {
fs.unlinkSync(localBin)
}
localBin += '.exe'
}

Expand Down

0 comments on commit 9eb4d2a

Please sign in to comment.