chriswalz / bit

Bit is a modern Git CLI
Apache License 2.0
6.07k stars 107 forks source link

`bit update`: check whether update is needed #77

Closed yermulnik closed 4 years ago

yermulnik commented 4 years ago

Describe the bug bit update doesn't check its version of the installed binary but re-downloads itself over again

To Reproduce Run bit update and watch it updating from latest to latest version.

Expected behavior bit update compares installed version to latest and downloads update only when needed.

Screenshots

> sudo bit update
Bit is supported through donations. Consider donating here: ❤ https://github.com/sponsors/chriswalz
Updated bit 0.9.1 to v0.9.1 in /usr/local/bin

Desktop (please complete the following information):

Additional context (Add any other context about the problem here) First reported in #63

chriswalz commented 4 years ago

This may be due to the symlink issue since bit update does/should check.

chriswalz commented 4 years ago

This was a bug related to when versions are something without a "v" in SemVer

yermulnik commented 4 years ago

@chriswalz Thank you!