Commit Graph

9 Commits

Author SHA1 Message Date
Gavin Chappell
389f7c25dd refactor downloading of binaries
* If `/tmp` is a `tmpfs` or somehow not the same filesystem, `os.Rename()` will fail so use `io.Copy()` instead
* don't defer cleanup of `to` as this removes the newly-created file if the operation is successful, making `install` and `upgrade` _functionally_ `uninstall`
* defer cleanup of the temporary file since it will still be in place if `os.Rename()` fails

Fixes: #130
2021-11-20 19:30:46 +00:00
8c30134f7c
error handling for upgrade and uninstall 2021-10-30 14:50:27 +02:00
33319a00ef
add arm for darwin 2021-04-26 13:15:58 +02:00
873170c6d1
fix auto update 2021-04-20 23:26:57 +02:00
e671780e54
fix version upgrade 2021-04-17 17:41:53 +02:00
976a3beab5
upgrade logic 2021-04-17 17:13:03 +02:00
3ccaee4066
cleaner output and ctrl-c 2021-04-12 16:15:17 +02:00
640b60c47f
current state 2021-04-12 10:55:57 +02:00
335724cce7
progress 2021-04-11 13:04:11 +02:00