Replies: 1 comment
-
I would like this too, as I maintain different linux machines and it'd be nice to have a way to detect this. It will help for any automated installer/updater scripts and tools, including topgrade. Using this in ansible is another example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, the Bum community!
I am a maintainer of Topgrade, a tool that is used to update everything.
Recently I encountered this issue, after discussion, I would like to only invoke the update procedure for Bun iff it is installed through the official script. Currently, I determine this by comparing if the Bun binary path is a descendant of the
bun_install_path
, from the install script,bun_install_path
can be set via environment variableBUN_INSTALL
, and if not set, defaults to~/.bun
.The problem with this approach is that the environment variable
BUN_INSTALL
is not necessary after installation, it is only used during the installation.I would like to know if there is any reliable way to check if an installation is done through the official script.
Beta Was this translation helpful? Give feedback.
All reactions