marcosnils / bin

Effortless binary manager
MIT License
685 stars 46 forks source link

Remove incorrectly downloaded binaries #23

Closed marcosnils closed 4 years ago

marcosnils commented 4 years ago

If download gets interrupted somehow (cmd + c or whatever), a corrupted file will be created in the FS.

We should probably download the file to a tmp dir and then move it to the final path once finished.

sirlatrom commented 4 years ago

Since we download the binary or archive to memory first since #29, maybe this isn't an issue any longer?

marcosnils commented 4 years ago

Makes sense.