Skip to content

Commit

Permalink
Add dependency check for ansible-galaxy in gRPC installation script (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbemmel authored Sep 5, 2022
1 parent 3099628 commit 2d7df9f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion netsim/install/grpc.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 $?
exit $?

0 comments on commit 2d7df9f

Please sign in to comment.