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

Fixes #1216
Jordan Harband 2016-08-29 09:15:57 -07:00
parent 68bf93514b
commit 6abc36ee4f
1 changed files with 1 additions and 0 deletions

1
nvm.sh
View File

@ -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 }