From 6abc36ee4ffc6690d0f0bb46b71f1b97fed5b42f Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 29 Aug 2016 09:15:57 -0700 Subject: [PATCH] [Fix] ensure LTS alias dir exists before writing to it. Fixes #1216 --- nvm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nvm.sh b/nvm.sh index ab8b2d7..94b8c3f 100644 --- a/nvm.sh +++ b/nvm.sh @@ -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 }