Skip to content

Commit 7ed1e71

Browse files
PeterDaveHelloljharb
authored andcommitted
[Refactor] Add missing backslash for dots
Related: #1279, 2a2b8bd, cadbbce
1 parent b7f9fbd commit 7ed1e71

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh |
7474

7575
```sh
7676
export NVM_DIR="$HOME/.nvm"
77-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
77+
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
7878
```
7979

8080
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
124124

125125
```sh
126126
export NVM_DIR="$HOME/.nvm"
127-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
127+
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
128128
```
129129

130130
### Manual upgrade

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ nvm_do_install() {
331331

332332
# Source nvm
333333
# shellcheck source=/dev/null
334-
. "${INSTALL_DIR}/nvm.sh"
334+
\. "${INSTALL_DIR}/nvm.sh"
335335

336336
nvm_check_global_modules
337337

update_test_mocks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ MOCKS_DIR="$PWD/test/fast/Unit tests/mocks"
99
echo "creating $MOCKS_DIR"
1010
mkdir -p "$MOCKS_DIR"
1111

12-
. "$NVM_DIR/nvm.sh" --no-use
12+
\. "$NVM_DIR/nvm.sh" --no-use
1313
nvm deactivate 2> /dev/null
1414
nvm_is_version_installed() {
1515
return 1

0 commit comments

Comments
 (0)