From 7ed1e71944618381002f6b08e808fcf7f51a2ba7 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Thu, 24 Nov 2016 13:47:20 +0800 Subject: [PATCH] [Refactor] Add missing backslash for dots Related: #1279, 2a2b8bd, cadbbce --- README.markdown | 4 ++-- install.sh | 2 +- update_test_mocks.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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