63a18be261
- /scripts/homebrew.sh - /scripts/src/homebrew.sh.tmpl - /scripts/src/cloudflared-ssh.sh.tmpl - /scripts/src/provision.sh.tmpl - /scripts/partials/logg - /scripts/partials/basic-deps - /scripts/partials/homebrew - /scripts/.gomplate.yaml - /scripts/README.md - /scripts/cloudflared-ssh.sh - /scripts/provision.sh
29 lines
No EOL
1.8 KiB
Text
29 lines
No EOL
1.8 KiB
Text
if ! command -v curl > /dev/null || ! command -v git > /dev/null || ! command -v expect > /dev/null || ! command -v rsync > /dev/null; then
|
|
if command -v apt-get > /dev/null; then
|
|
# @description Ensure `build-essential`, `curl`, `expect`, `git`, and `rsync` are installed on Debian / Ubuntu
|
|
sudo apt-get update
|
|
sudo apt-get install -y build-essential curl expect git rsync
|
|
elif command -v dnf > /dev/null; then
|
|
# @description Ensure `curl`, `expect`, `git`, and `rsync` are installed on Fedora
|
|
sudo dnf install -y curl expect git rsync
|
|
elif command -v yum > /dev/null; then
|
|
# @description Ensure `curl`, `expect`, `git`, and `rsync` are installed on CentOS
|
|
sudo yum install -y curl expect git rsync
|
|
elif command -v pacman > /dev/null; then
|
|
# @description Ensure `curl`, `expect`, `git`, and `rsync` are installed on Archlinux
|
|
sudo pacman update
|
|
sudo pacman -Sy curl expect git rsync
|
|
elif command -v zypper > /dev/null; then
|
|
# @description Ensure `curl`, `expect`, `git`, and `rsync` are installed on OpenSUSE
|
|
sudo zypper install -y curl expect git rsync
|
|
elif command -v apk > /dev/null; then
|
|
# @description Ensure `curl`, `expect`, `git`, and `rsync` are installed on Alpine
|
|
apk add curl expect git rsync
|
|
elif [ -d /Applications ] && [ -d /Library ]; then
|
|
# @description Ensure CLI developer tools are available on macOS (via `xcode-select`)
|
|
sudo xcode-select -p >/dev/null 2>&1 || xcode-select --install
|
|
elif [[ "$OSTYPE" == 'cygwin' ]] || [[ "$OSTYPE" == 'msys' ]] || [[ "$OSTYPE" == 'win32' ]]; then
|
|
# @description Ensure `curl`, `expect`, `git`, and `rsync` are installed on Windows
|
|
choco install -y curl expect git rsync
|
|
fi
|
|
fi |