-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install.sh cd-ing glitch when nvm is already installed #1137
Comments
Hmm, I'm not able to reproduce that. In what directory are you running I do see the logical issue in the code - that should be trivial to fix. |
I'm running it in /Users/cspotcode/Desktop/nvm-test/. I have git installed, so the install script is using git instead of wget or curl; maybe that's the difference between my system and yours? |
Pretty sure I have git installed ;-) So you've downloaded |
Here's a full reproduction case. I'm running Mac OSX 10.10.5.
|
Thanks! When I run cd ~/Desktop
mkdir -p issue1137
cd issue1137
mkdir -p custom-nvm-dir
touch profile
curl -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | NVM_DIR=custom-nvm-dir PROFILE=../profile bash
curl -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | NVM_DIR=custom-nvm-dir PROFILE=../profile bash I do still see |
K, should be all fixed in latest master, which will be in the next release. |
Reproduction: run the following so that the second time, install.sh detect that nvm is already installed.
This happens:
This happens because line 62 has already
cd
-ed to nvm-dir.EDIT: a quick fix would be for line 62 to
pushd
and thenpopd
immediately afterwards.The text was updated successfully, but these errors were encountered: