Update 3 files

- /local/provision.sh
- /home/.chezmoitemplates/universal/common-dependencies
- /home/dot_local/bin/executable_provision.tmpl
This commit is contained in:
Brian Zalewski 2023-01-10 08:33:15 +00:00
parent 9e3df2a7d1
commit 623b55b465
3 changed files with 21 additions and 20 deletions

View file

@ -3,6 +3,7 @@
"bash" "bash"
"coreutils" "coreutils"
"curl" "curl"
"expect"
"git" "git"
"grep" "grep"
"gnupg" "gnupg"

View file

@ -100,29 +100,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 || ! command -v rsync > /dev/null; then if ! command -v curl > /dev/null || ! command -v git > /dev/null || ! command -v brew > /dev/null || ! command -v rsync > /dev/null || ! command -v unbuffer > /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`, `expect`, `git`, and `rsync` 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 rsync sudo apt-get install -y build-essential curl expect git rsync
elif command -v dnf > /dev/null; then elif command -v dnf > /dev/null; then
# Fedora # Fedora
sudo dnf install -y curl git rsync sudo dnf install -y curl expect git rsync
elif command -v yum > /dev/null; then elif command -v yum > /dev/null; then
# CentOS # CentOS
sudo yum install -y curl git rsync sudo yum install -y curl expect 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 rsync sudo pacman -Sy curl expect 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 rsync sudo zypper install -y curl expect git rsync
elif command -v apk > /dev/null; then elif command -v apk > /dev/null; then
# Alpine # Alpine
apk add curl git rsync apk add curl expect 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
@ -140,7 +140,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 rsync choco install -y curl expect git node rsync
fi fi
fi fi

View file

@ -266,29 +266,29 @@ if ! command -v brew > /dev/null && [ -f /home/linuxbrew/.linuxbrew/bin/brew ];
fi fi
if ! command -v curl > /dev/null || ! command -v git > /dev/null || ! command -v brew > /dev/null || ! command -v rsync > /dev/null; then if ! command -v curl > /dev/null || ! command -v git > /dev/null || ! command -v brew > /dev/null || ! command -v rsync > /dev/null || ! command -v unbuffer > /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`, `expect`, `git`, and `rsync` 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 rsync sudo apt-get install -y build-essential curl expect git rsync
elif command -v dnf > /dev/null; then elif command -v dnf > /dev/null; then
# Fedora # Fedora
sudo dnf install -y curl git rsync sudo dnf install -y curl expect git rsync
elif command -v yum > /dev/null; then elif command -v yum > /dev/null; then
# CentOS # CentOS
sudo yum install -y curl git rsync sudo yum install -y curl expect 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 rsync sudo pacman -Sy curl expect 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 rsync sudo zypper install -y curl expect git rsync
elif command -v apk > /dev/null; then elif command -v apk > /dev/null; then
# Alpine # Alpine
apk add curl git rsync apk add curl expect 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
@ -306,7 +306,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 rsync choco install -y curl expect git node rsync
fi fi
fi fi
@ -427,7 +427,7 @@ export DEBIAN_FRONTEND=noninteractive
# shellcheck disable=SC2016 # shellcheck disable=SC2016
logg info 'Running `chezmoi apply`' logg info 'Running `chezmoi apply`'
if [ -n "$FORCE_CHEZMOI" ]; then if [ -n "$FORCE_CHEZMOI" ]; then
chezmoi apply -k --force 2>&1 | tee "${XDG_DATA_DIR:-$HOME/.local/share}/megabyte-labs/betelgeuse.$(date +%s).log" | grep --line-buffered chezmoi apply -k --force 2>&1 | tee "${XDG_DATA_DIR:-$HOME/.local/share}/megabyte-labs/betelgeuse.$(date +%s).log"
else else
chezmoi apply -k 2>&1 | tee "${XDG_DATA_DIR:-$HOME/.local/share}/megabyte-labs/betelgeuse.$(date +%s).log" | grep --line-buffered chezmoi apply -k 2>&1 | tee "${XDG_DATA_DIR:-$HOME/.local/share}/megabyte-labs/betelgeuse.$(date +%s).log"
fi fi