2020-04-06 07:54:06 +00:00
|
|
|
#!/usr/bin/env bash
|
2018-09-24 18:07:34 +00:00
|
|
|
|
2022-08-03 09:26:31 +00:00
|
|
|
if [[ -x $(command -v apt-get) ]]; then
|
|
|
|
apt-get install -y protobuf-compiler jq
|
2021-09-13 09:06:07 +00:00
|
|
|
elif [[ -x $(command -v pacman) ]]; then
|
2018-11-19 17:12:59 +00:00
|
|
|
pacman -Sy protobuf jq --noconfirm
|
2021-09-13 09:06:07 +00:00
|
|
|
elif [[ -x $(command -v brew) ]]; then
|
2018-11-19 17:12:59 +00:00
|
|
|
brew install protobuf jq
|
2021-09-13 09:06:07 +00:00
|
|
|
elif [[ -x $(command -v nix-env) ]]; then
|
2022-07-26 15:36:10 +00:00
|
|
|
nix-env -iA nixos.protobuf3_17
|
2021-09-13 09:06:07 +00:00
|
|
|
else
|
|
|
|
echo "ERROR: No known package manager found!" >&2
|
|
|
|
exit 1
|
2018-09-24 18:07:34 +00:00
|
|
|
fi
|