2020-04-06 07:54:06 +00:00
|
|
|
#!/usr/bin/env bash
|
2018-09-24 18:07:34 +00:00
|
|
|
|
2021-09-13 09:06:07 +00:00
|
|
|
if [[ -x $(command -v apt) ]]; then
|
2018-11-19 17:12:59 +00:00
|
|
|
apt 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
|
|
|
|
nix-env -iA nixos.protobuf3_13
|
|
|
|
else
|
|
|
|
echo "ERROR: No known package manager found!" >&2
|
|
|
|
exit 1
|
2018-09-24 18:07:34 +00:00
|
|
|
fi
|