diff options
Diffstat (limited to 'functions.sh')
-rwxr-xr-x | functions.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh index 25f76ea..f0e1213 100755 --- a/functions.sh +++ b/functions.sh @@ -50,6 +50,14 @@ check_prerequisites() { fi #------------------------------------------------------------------------------- + # Check is yq is installed + #------------------------------------------------------------------------------- + if ! command -v yq &> /dev/null; then + echo "ERROR : yq not found. Please install." + exit 1 + fi + + #------------------------------------------------------------------------------- # Check is libvirt is installed #------------------------------------------------------------------------------- if ! command -v virsh &> /dev/null; then |