Closed yermulnik closed 4 years ago
@yermulnik This one was a bit hard to test but I added a symlink check. If bit is symlinked it will suggest brew upgrade
Please reopen if this doesn't work. Thanks for reporting it.
@chriswalz Thank you
This one was a bit hard to test
Yep, I do understand. Thanks for fixing for brew
but I think there still will be an issue with other package managers where e.g. apt
on Ubuntu and pkg
on FreeBSD install bit
into a PATH
as binary but not as symlink.
I'll re-open this issue if I have an idea on how to add a check for this kind of package managers.
Describe the bug
bit
doesn't detect whether it was installed via package manager (brew
in this case) and runningbut update
just silently overwrites the symlink in/usr/local/bin/
To Reproduce
bit update
/usr/local/bin/bit
is still a symlinkExpected behavior
bit
detects it was installed via package manager (e.g. by checking some common location which is used by most package managers to keep track of packages installed by their means or e.g. by creating auxiliary file when installed manually) and declines to do a self-update with a self-exlanatory message with optional prompt to force the update and replacement of the already installed file.Screenshots
Desktop (please complete the following information):
Additional context (Add any other context about the problem here) First reported in #63