status-go/_assets/scripts/install_deps.sh
yqrashawn d1ef1a3e31
fix: apt -> apt-get (#2775)
there's a default /usr/bin/apt cli in macos
2022-08-03 11:26:31 +02:00

15 lines
391 B
Bash
Executable File

#!/usr/bin/env bash
if [[ -x $(command -v apt-get) ]]; then
apt-get install -y protobuf-compiler jq
elif [[ -x $(command -v pacman) ]]; then
pacman -Sy protobuf jq --noconfirm
elif [[ -x $(command -v brew) ]]; then
brew install protobuf jq
elif [[ -x $(command -v nix-env) ]]; then
nix-env -iA nixos.protobuf3_17
else
echo "ERROR: No known package manager found!" >&2
exit 1
fi