diff --git a/.install/scuttlebutt.sh b/.install/scuttlebutt.sh index 876e000..d58a911 100755 --- a/.install/scuttlebutt.sh +++ b/.install/scuttlebutt.sh @@ -12,8 +12,12 @@ scuttlebutt() { sudo apt-get install -y socat python3-dev libtool python3-setuptools autoconf automake # Install nvm - [[ ! $(which nvm) ]] && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash && source ~/.bashrc && nvm install --lts - + if [[ ! $(which nvm) ]]; then + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash + source ~/.bashrc + export NVM_DIR="$HOME/.nvm" + nvm install --lts + fi # Install ssb-server and config in ~/.ssb_astroport [[ ! -d ~/.ssb_astroport ]] && mkdir -p ~/.ssb_astroport cd ~/.ssb_astroport