chore(configure): add curl to install dependencies

This helps protect cases where new containers don't have curl installed by default.
This commit is contained in:
Jordan Jones
2023-10-01 08:28:11 -07:00
parent c06c0f8b38
commit e9bdf80f84

View File

@@ -44,13 +44,13 @@ if [[ ! $(which git) ]]; then
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
DISTRIB=$(awk -F= '/^ID/{print $2}' /etc/os-release)
if [[ ${DISTRIB} = "ubuntu"* ]] || [[ ${DISTRIB} = "debian"* ]]; then
sudo apt install -y git
sudo apt install -y git curl
elif [[ ${DISTRIB} = "fedora"* ]] || [[ ${DISTRIB} = "almalinux"* ]] || [[ ${DISTRIB} = "rockylinux"* ]] || [[ ${DISTRIB} = "rhel"* ]]; then
sudo dnf install git -y
sudo dnf install git curl -y
fi
fi
if [[ "$OSTYPE" == "darwin"* ]]; then
brew install git
brew install git curl
fi
fi