From 237a32846ad4a8f8634a68f0a92c71c49807de26 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 7 Dec 2024 02:38:36 +0200 Subject: Load nvm after installing --- install.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'install.sh') 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 -- cgit v1.2.3