Browse Source

[Fix] ensure LTS alias dir exists before writing to it.

Fixes #1216
Jordan Harband 9 years ago
parent
commit
6abc36ee4f
  1. 1
      nvm.sh

1
nvm.sh

@ -966,6 +966,7 @@ nvm_ls_remote_index_tab() { @@ -966,6 +966,7 @@ nvm_ls_remote_index_tab() {
)"
local LTS_ALIAS
local LTS_VERSION
command mkdir -p "$(nvm_alias_path)/lts"
nvm_echo "${VERSION_LIST}" \
| awk '{
if ($10 ~ /^\-?$/) { next }

Loading…
Cancel
Save