Skip to content

Commit

Permalink
install other builder prereqs on non-debians
Browse files Browse the repository at this point in the history
  • Loading branch information
iliana committed Dec 1, 2023
1 parent ac94fc0 commit 5864dff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/install_builder_prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ HOST_OS=$(uname -s)

function install_packages {
if [[ "${HOST_OS}" == "Linux" ]]; then
if ! grep -q -e 'ID=debian' -e 'ID_LIKE=.*debian.*' /etc/os-release; then
echo "This script doesn't yet support $(grep ^ID /etc/os-release)"
echo "We assume you know what you're doing!"
return
fi

packages=(
'libpq-dev'
'pkg-config'
Expand Down Expand Up @@ -162,7 +168,7 @@ function install_packages {
confirm "Install (or update) [${packages[*]}]?" && brew install "${packages[@]}"
else
echo "Unsupported OS: ${HOST_OS}"
exit 1
echo "We assume you know what you're doing!"
fi
}

Expand Down

0 comments on commit 5864dff

Please sign in to comment.