aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-07 02:38:36 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-07 02:38:36 +0200
commit237a32846ad4a8f8634a68f0a92c71c49807de26 (patch)
tree563ae5b8a4e6cb7679b7f6c6251a204dcaefebaa /install.sh
parent59cc8b9e39bb849175cc101865224d2487b2876d (diff)
downloadarching-kaos-tools-237a32846ad4a8f8634a68f0a92c71c49807de26.tar.gz
arching-kaos-tools-237a32846ad4a8f8634a68f0a92c71c49807de26.tar.bz2
arching-kaos-tools-237a32846ad4a8f8634a68f0a92c71c49807de26.zip
Load nvm after installing
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