[shellcheck] properly quote arguments.

Jordan Harband 2016-08-23 00:26:35 -07:00
parent 24a9c089ff
commit cbeb654692
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 2 additions and 2 deletions

4
nvm.sh
View File

@ -2195,10 +2195,10 @@ nvm() {
case "${PATTERN-}" in case "${PATTERN-}" in
--) ;; --) ;;
--lts) --lts)
VERSION="$(nvm_match_version lts/*)" VERSION="$(nvm_match_version "lts/*")"
;; ;;
--lts=*) --lts=*)
VERSION="$(nvm_match_version lts/${PATTERN##--lts=})" VERSION="$(nvm_match_version "lts/${PATTERN##--lts=}")"
;; ;;
*) *)
VERSION="$(nvm_version "${PATTERN}")" VERSION="$(nvm_version "${PATTERN}")"