From d5389c5ed3bd5ac34b442c8568ad769cffb254c0 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 29 Apr 2022 02:45:05 -0500 Subject: [PATCH] Pacman is entirely broken. Oh well. --- setup-development/linux/upgrade-linux.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/setup-development/linux/upgrade-linux.sh b/setup-development/linux/upgrade-linux.sh index 1ce271a..3e1084d 100644 --- a/setup-development/linux/upgrade-linux.sh +++ b/setup-development/linux/upgrade-linux.sh @@ -39,17 +39,18 @@ esac if which pacman; then # Install dependencies with pacman - dryrun $ELEVATE pacman -S - < package-managers/pacman.dependencies + cat ./package-managers/pacman.dependencies | dryrun $ELEVATE pacman -S - + elif which apt-get; then # Install dependencies using apt-get dryrun xargs -a ./package-managers/apt.dependencies $ELEVATE apt-get install -y # Install Node Version Manager (nvm) # TODO: Find a better way to install nvm on Ubuntu, the official NodeJS for <20.04 is so out of date it's unsupported. - dryrun curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash - export NVM_DIR="$HOME/.nvm" - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm - [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | dryrun bash + dryrun export NVM_DIR="$HOME/.nvm" + dryrun [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + dryrun [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion # Check if vscode exists, if not, install it. # Microsoft doesn't put it in any Ubuntu repos, you have to get it straight from them.