aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 5655dec..7a63e77 100755
--- a/install.sh
+++ b/install.sh
@@ -96,6 +96,8 @@ do
fi
printf "\t nvm installed!"
printf "\t Installing latest nodejs..."
+ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm install $(nvm ls-remote|tail -n 1)
if [ $? -ne 0 ]
then