Update 2 files

- /home/dot_local/bin/executable_provision.tmpl
- /local/provision.sh
This commit is contained in:
Brian Zalewski 2023-01-05 09:12:37 +00:00
parent ea10ebba44
commit 3349604a31
2 changed files with 18 additions and 18 deletions

View file

@ -95,29 +95,29 @@ if ! command -v brew > /dev/null && [ -f /home/linuxbrew/.linuxbrew/bin/brew ];
fi fi
### System package manager update / Homebrew dependencies ### System package manager update / Homebrew dependencies
if ! command -v curl > /dev/null || ! command -v git > /dev/null || ! command -v brew > /dev/null; then if ! command -v curl > /dev/null || ! command -v git > /dev/null || ! command -v brew > /dev/null || ! command -v rsync > /dev/null; then
# shellcheck disable=SC2016 # shellcheck disable=SC2016
logg info 'Ensuring `curl` and `git` are installed via the system package manager' logg info 'Ensuring `curl` and `git` are installed via the system package manager'
if command -v apt-get > /dev/null; then if command -v apt-get > /dev/null; then
# Debian / Ubuntu # Debian / Ubuntu
sudo apt-get update sudo apt-get update
sudo apt-get install -y build-essential curl git sudo apt-get install -y build-essential curl git rsync
elif command -v dnf > /dev/null; then elif command -v dnf > /dev/null; then
# Fedora # Fedora
sudo dnf install -y curl git sudo dnf install -y curl git rsync
elif command -v yum > /dev/null; then elif command -v yum > /dev/null; then
# CentOS # CentOS
sudo yum install -y curl git sudo yum install -y curl git rsync
elif command -v pacman > /dev/null; then elif command -v pacman > /dev/null; then
# Archlinux # Archlinux
sudo pacman update sudo pacman update
sudo pacman -Sy curl git sudo pacman -Sy curl git rsync
elif command -v zypper > /dev/null; then elif command -v zypper > /dev/null; then
# OpenSUSE # OpenSUSE
sudo zypper install -y curl git nodejs sudo zypper install -y curl git nodejs rsync
elif command -v apk > /dev/null; then elif command -v apk > /dev/null; then
# Alpine # Alpine
apk add curl git apk add curl git rsync
elif [ -d /Applications ] && [ -d /Library ]; then elif [ -d /Applications ] && [ -d /Library ]; then
# macOS # macOS
sudo xcode-select -p >/dev/null 2>&1 || xcode-select --install sudo xcode-select -p >/dev/null 2>&1 || xcode-select --install
@ -135,7 +135,7 @@ if ! command -v curl > /dev/null || ! command -v git > /dev/null || ! command -v
echo "TODO - Add support for Void" echo "TODO - Add support for Void"
elif [[ "$OSTYPE" == 'cygwin' ]] || [[ "$OSTYPE" == 'msys' ]] || [[ "$OSTYPE" == 'win32' ]]; then elif [[ "$OSTYPE" == 'cygwin' ]] || [[ "$OSTYPE" == 'msys' ]] || [[ "$OSTYPE" == 'win32' ]]; then
# Windows # Windows
choco install -y curl git node choco install -y curl git node rsync
fi fi
fi fi

View file

@ -260,30 +260,30 @@ if ! command -v brew > /dev/null && [ -f /home/linuxbrew/.linuxbrew/bin/brew ];
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi fi
### System package manager update / Homebrew dependencies
if ! command -v curl > /dev/null || ! command -v git > /dev/null || ! command -v brew > /dev/null; then if ! command -v curl > /dev/null || ! command -v git > /dev/null || ! command -v brew > /dev/null || ! command -v rsync > /dev/null; then
# shellcheck disable=SC2016 # shellcheck disable=SC2016
logg info 'Ensuring `curl`, `git`, and OS-specific dependencies are installed via the system package manager' logg info 'Ensuring `curl` and `git` are installed via the system package manager'
if command -v apt-get > /dev/null; then if command -v apt-get > /dev/null; then
# Debian / Ubuntu # Debian / Ubuntu
sudo apt-get update sudo apt-get update
sudo apt-get install -y build-essential curl git sudo apt-get install -y build-essential curl git rsync
elif command -v dnf > /dev/null; then elif command -v dnf > /dev/null; then
# Fedora # Fedora
sudo dnf install -y curl git sudo dnf install -y curl git rsync
elif command -v yum > /dev/null; then elif command -v yum > /dev/null; then
# CentOS # CentOS
sudo yum install -y curl git sudo yum install -y curl git rsync
elif command -v pacman > /dev/null; then elif command -v pacman > /dev/null; then
# Archlinux # Archlinux
sudo pacman update sudo pacman update
sudo pacman -Sy curl git sudo pacman -Sy curl git rsync
elif command -v zypper > /dev/null; then elif command -v zypper > /dev/null; then
# OpenSUSE # OpenSUSE
sudo zypper install -y curl git nodejs sudo zypper install -y curl git nodejs rsync
elif command -v apk > /dev/null; then elif command -v apk > /dev/null; then
# Alpine # Alpine
apk add curl git apk add curl git rsync
elif [ -d /Applications ] && [ -d /Library ]; then elif [ -d /Applications ] && [ -d /Library ]; then
# macOS # macOS
sudo xcode-select -p >/dev/null 2>&1 || xcode-select --install sudo xcode-select -p >/dev/null 2>&1 || xcode-select --install
@ -301,7 +301,7 @@ if ! command -v curl > /dev/null || ! command -v git > /dev/null || ! command -v
echo "TODO - Add support for Void" echo "TODO - Add support for Void"
elif [[ "$OSTYPE" == 'cygwin' ]] || [[ "$OSTYPE" == 'msys' ]] || [[ "$OSTYPE" == 'win32' ]]; then elif [[ "$OSTYPE" == 'cygwin' ]] || [[ "$OSTYPE" == 'msys' ]] || [[ "$OSTYPE" == 'win32' ]]; then
# Windows # Windows
choco install -y curl git node choco install -y curl git node rsync
fi fi
fi fi