diff --git a/README.markdown b/README.markdown index 0581cac..14834e9 100644 --- a/README.markdown +++ b/README.markdown @@ -74,7 +74,7 @@ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | ```sh export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm ``` You can customize the install source, directory, profile, and version using the `NVM_SOURCE`, `NVM_DIR`, `PROFILE`, and `NODE_VERSION` variables. @@ -124,7 +124,7 @@ Add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it ```sh export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm ``` ### Manual upgrade diff --git a/install.sh b/install.sh index ff259aa..f788714 100755 --- a/install.sh +++ b/install.sh @@ -331,7 +331,7 @@ nvm_do_install() { # Source nvm # shellcheck source=/dev/null - . "${INSTALL_DIR}/nvm.sh" + \. "${INSTALL_DIR}/nvm.sh" nvm_check_global_modules diff --git a/update_test_mocks.sh b/update_test_mocks.sh index 5c6917c..4a463c1 100755 --- a/update_test_mocks.sh +++ b/update_test_mocks.sh @@ -9,7 +9,7 @@ MOCKS_DIR="$PWD/test/fast/Unit tests/mocks" echo "creating $MOCKS_DIR" mkdir -p "$MOCKS_DIR" -. "$NVM_DIR/nvm.sh" --no-use +\. "$NVM_DIR/nvm.sh" --no-use nvm deactivate 2> /dev/null nvm_is_version_installed() { return 1