hurl/bin/install_prerequisites_macos.sh
2024-04-05 14:33:51 +02:00

22 lines
555 B
Bash
Executable File

#!/bin/bash
set -Eeuo pipefail
echo "----- preinstalled curl version -----"
curl --version
echo "----- install prerequisite packages -----"
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=true
brew uninstall --force --ignore-dependencies curl
brew update
brew install -s curl
brew link --force --overwrite curl
CURL_PATH="$(brew --prefix curl)/bin"
export CURL_PATH
echo "CURL_PATH=$CURL_PATH"
PATH="$CURL_PATH:$PATH"
export PATH
brew install bash pkg-config squid jq
sudo squid -k shutdown || true
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true