diff --git a/mastersetup.bash b/mastersetup.bash index a2daddb..4a8cc66 100755 --- a/mastersetup.bash +++ b/mastersetup.bash @@ -129,8 +129,9 @@ wget https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb -O /tmp/s sudo apt install /tmp/steam.deb -y # NVM and Node.js -#echo "Installing NVM and Node.js..." -#sudo -u "$SUDO_USER" curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash +echo "Installing NVM and Node.js..." +sudo -u "$SUDO_USER" wget -O /tmp/nvm.sh https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh +sudo -Hu "$SUDO_USER" bash /tmp/nvm.sh #sudo -u "$SUDO_USER" . ~/.nvm/nvm.sh #sudo -u "$SUDO_USER" nvm install --lts # not sure why these other lines are here, I'll have to check @@ -140,7 +141,9 @@ echo "Installing Bun..." sudo -u "$SUDO_USER" curl -fsSL https://bun.sh/install | bash || { echo "Bun install failed" >&2; exit 1; } # Joplin -#sudo -u "$SUDO_USER" wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash +sudo -u "$SUDO_USER" wget -O /tmp/joplin_install.sh https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh +sudo -Hu "$SUDO_USER" bash /tmp/joplin_install.sh +rm /tmp/joplin_install.sh # Tabby download_latest_deb "Eugeny/tabby" "tabby.deb"