Browse Source

Fix whitespace

Jordan Harband 7 years ago
parent
commit
5fc8bd950d
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
  1. 4
      nvm.sh

4
nvm.sh

@ -611,8 +611,8 @@ nvm_change_path() {
nvm_echo "${3-}${2-}" nvm_echo "${3-}${2-}"
# if the initial path doesn’t contain an nvm path, prepend the supplementary # if the initial path doesn’t contain an nvm path, prepend the supplementary
# path # path
elif ! echo "${1-}" | nvm_grep -q "${NVM_DIR}/[^/]*${2-}" && \ elif ! echo "${1-}" | nvm_grep -q "${NVM_DIR}/[^/]*${2-}" \
! echo "${1-}" | nvm_grep -q "${NVM_DIR}/versions/[^/]*/[^/]*${2-}"; then && ! echo "${1-}" | nvm_grep -q "${NVM_DIR}/versions/[^/]*/[^/]*${2-}"; then
nvm_echo "${3-}${2-}:${1-}" nvm_echo "${3-}${2-}:${1-}"
# use sed to replace the existing nvm path with the supplementary path. This # use sed to replace the existing nvm path with the supplementary path. This
# preserves the order of the path. # preserves the order of the path.

Loading…
Cancel
Save