diff options
-rwxr-xr-x | deploy.sh | 6 | ||||
-rwxr-xr-x | functions.sh | 8 |
2 files changed, 11 insertions, 3 deletions
@@ -19,9 +19,6 @@ set -o nounset CURRENTPATH=$(git rev-parse --show-toplevel) export CURRENTPATH -# Source env variables & functions -# shellcheck source=./deploy.env -source "$CURRENTPATH/deploy.env" # shellcheck source=./functions.sh source "$CURRENTPATH/functions.sh" @@ -30,6 +27,9 @@ source "$CURRENTPATH/functions.sh" # --------------------------------------------------------------------- check_prerequisites +# shellcheck source=./deploy.env +source "$CURRENTPATH/deploy.env" + # --------------------------------------------------------------------- # bootstrap install prerequisites # --------------------------------------------------------------------- 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 |