zyedidia / eget

Easily install prebuilt binaries from GitHub.
MIT License
954 stars 39 forks source link

Use eget to update eget #25

Closed dufferzafar closed 2 years ago

dufferzafar commented 2 years ago

Eget can't update itself!

❯ eget -v
eget version 0.2.0

❯ eget zyedidia/eget --to /apps/bin
https://github.com/zyedidia/eget/releases/download/v1.0.1/eget-1.0.1-linux_amd64.tar.gz
Downloading 100% [===========================================================] (2.2/2.2 MB, 1.657 MB/s)        
open /apps/bin/eget: text file busy

So I use a workaround:

❯ eget zyedidia/eget --to /tmp                       
https://github.com/zyedidia/eget/releases/download/v1.0.1/eget-1.0.1-linux_amd64.tar.gz
Downloading 100% [===========================================================] (2.2/2.2 MB, 756.315 kB/s)        
Extracted `eget-1.0.1-linux_amd64/eget` to `/tmp/eget`

❯ mv /tmp/eget /apps/bin/

❯ eget -v
eget version 1.0.1
zyedidia commented 2 years ago

See #13. The fix was released in version 1.0.0.