From dfc62d2a243b2efa53fd7870b2a2e76793379650 Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 30 Apr 2020 03:01:48 +0200 Subject: [PATCH] nvm problem --- .install/scuttlebutt.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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