You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the wget command fails for any reasons during the "Install NVM" the error is ignored, and then the check nvm version step fails later.
Expected behaviour
The "Install NVM" command should fail when the wget command fails instead of ignoring it
To Reproduce
Use bad proxy environment settings and wget will fail with return code 8.
Shell
Bash
Desktop (please complete the following information):
I've been doing quite a lot of work surrounding idempotency with this role. Thanks for pointing this out, I'll make it part of the work I am currently doing.
Describe the bug
If the wget command fails for any reasons during the "Install NVM" the error is ignored, and then the check nvm version step fails later.
Expected behaviour
The "Install NVM" command should fail when the wget command fails instead of ignoring it
To Reproduce
Use bad proxy environment settings and wget will fail with return code 8.
Shell
Bash
Desktop (please complete the following information):
Additional context
For bash this should be fixable by setting pipefail. Eg: https://blog.christophersmart.com/2019/09/28/using-pipefail-with-shell-module-in-ansible/
The text was updated successfully, but these errors were encountered: