feat: enable NVM and Joplin installation with safer file download handling

This commit is contained in:
Paul M 2025-07-14 20:18:56 -05:00
parent ebf14388b8
commit f50de651d6

View file

@ -129,8 +129,9 @@ wget https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb -O /tmp/s
sudo apt install /tmp/steam.deb -y sudo apt install /tmp/steam.deb -y
# NVM and Node.js # NVM and Node.js
#echo "Installing 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 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/nvm.sh
#sudo -u "$SUDO_USER" nvm install --lts #sudo -u "$SUDO_USER" nvm install --lts
# not sure why these other lines are here, I'll have to check # 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; } sudo -u "$SUDO_USER" curl -fsSL https://bun.sh/install | bash || { echo "Bun install failed" >&2; exit 1; }
# Joplin # 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 # Tabby
download_latest_deb "Eugeny/tabby" "tabby.deb" download_latest_deb "Eugeny/tabby" "tabby.deb"