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