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
script is failing out after calling code that "loads NVM" after using wget or curl #1359
Comments
You've got a whole lot of commands strung together with |
this might help, here is the stdio of script
|
It seems like maybe NVM is forcing the process to close somehow? that doesn't make sense. I am not a shell scripting guru. I took out the line where I source ~/.bash_profile, and I get the above output It's exiting with code = 1, that is for sure |
interesting, I ran this script in a container, vs. running it directly on my machine. It succeeds in a container, but fails when running direct. Not sure why...will investigate. Very strangely, nvm is available at the command line, but if I run the above script it will say, nvm is not an available command. |
I have this bash script. What I want to do is have it run automatically, non-interactively...it installs NVM and then installs some modules globally.
you should be able to run it on your system (feel free to sandbox it in a container or something if that suits your fancy).
Anyway, it errors out on the line that says # SEEMS TO FAIL HERE
Like I was saying earlier on another thread, I don't want this NVM install to be interactive at all....this script is for an automated test. But for some reason when I try to "load" NVM without starting a new terminal session, the script seems to conk out..any ideas?
The text was updated successfully, but these errors were encountered: