Skip to content

nvm.sh not working with "set -e" #1062

@Richie765

Description

@Richie765

I like to run most of my scripts with set -e so they terminate whenever there is a problem.

If I run the following in my .bashrc

set -e

# commands

export NVM_DIR=~/.nvm
. $(brew --prefix nvm)/nvm.sh

# other commands

It will terminate during nvm.sh with an exit code. Obviously I can work around that but perhaps it could be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsOh no, something's broken :-(non-issue / invalidThis isn't relevant to nvm, or turned out to be something unrelated.shell: bash/sh

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions