From 14451c667accaa56159116d58b25d4f14e682ec2 Mon Sep 17 00:00:00 2001 From: Paul M Date: Mon, 14 Jul 2025 20:28:29 -0500 Subject: [PATCH] fix: clean up nvm installer script and fix bun installation permissions --- mastersetup.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mastersetup.bash b/mastersetup.bash index 4a8cc66..f97f5b7 100755 --- a/mastersetup.bash +++ b/mastersetup.bash @@ -132,13 +132,14 @@ sudo apt install /tmp/steam.deb -y 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 +rm /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 # Bun echo "Installing Bun..." -sudo -u "$SUDO_USER" curl -fsSL https://bun.sh/install | bash || { echo "Bun install failed" >&2; exit 1; } +sudo -Hu "$SUDO_USER" curl -fsSL https://bun.sh/install | bash || { echo "Bun install failed" >&2; exit 1; } # Joplin sudo -u "$SUDO_USER" wget -O /tmp/joplin_install.sh https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh