indynov

Results 15 comments of indynov

It would be possible, inside the install.sh script you have already created a variable called DETECTED_PROFILE which holds the location of the shell script detected. You simply use cat to...

That is why you create a file called $HOME/.shell_path which holds the location.

Inside install.sh, you create a file at $HOME/.shell_path using cat that reads for instance "/root/.bashrc" Then ``curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash && source `cat $HOME/.shell_path` `` will work

It would work, you would just create and read the file from the location $HOME/.nvm/.shell_path instead.

By default NVM installs into $HOME, does it always install into $HOME? If so then that would work. Otherwise there is also the option of putting it in /tmp Otherwise...