bash_completion appears to be already installed if PROFILE variable is set on a system PROFILE file #2568
Labels
installing nvm: profile detection
Issues with nvm's own install script, related to figuring out the right profile file.
root / multiuser issues
Anything related to using `sudo` or `su`, or using nvm across multiple user accounts.
Operating system and version:
CentOS 7.6.1811
How did you install
nvm
?curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | NVM_DIR=/opt/nvm PROFILE=/etc/bashrc bash
What happened?
The output shows
=> bash_completion source string already in /etc/bashrc
where this statement is wrong. This message pops just because the system PROFILE file case is not handled properly.What did you expect to happen?
As the vision of
nvm
is focused "per-user only", the detection function (that decide if the file set in PROFILE variable is abash
orzsh
profile file) should detect if the file provided is a user one. If it is a system one, the installation should stop, or a BIG WARNING should pe printed.The text was updated successfully, but these errors were encountered: