diff --git a/netsim/install/grpc.sh b/netsim/install/grpc.sh index 330d10ba0..5f547730c 100755 --- a/netsim/install/grpc.sh +++ b/netsim/install/grpc.sh @@ -1,5 +1,11 @@ #!/bin/bash +# Check dependencies +if [[ ! `which ansible-galaxy` ]]; then + echo "GRPC packages depend on Ansible (ansible-galaxy), aborting..." + exit 1 +fi + if [[ -z "$FLAG_YES" ]]; then # Remove implied default of Y - ghostinthenet 20220418 read -p "Are you sure you want to proceed [y/n] " -n 1 -r @@ -17,4 +23,4 @@ ansible-galaxy collection install git+https://github.com/nokia/ansible-networkin # grpc sources contain generated pb2 file which is not compatible with newer versions of protobuf python3 -m pip install grpcio protobuf==3.20.1 --upgrade -exit $? \ No newline at end of file +exit $?