The yq parser is required by the deploy.env file to extract values from
PDF and IDF files. This change ensures that binary is present.
Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: I5400bc4910ea88da74fab188bf1cfdbebe3cbed1
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71230
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
CURRENTPATH=$(git rev-parse --show-toplevel)
export CURRENTPATH
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"
# shellcheck source=./functions.sh
source "$CURRENTPATH/functions.sh"
# ---------------------------------------------------------------------
check_prerequisites
# ---------------------------------------------------------------------
check_prerequisites
+# shellcheck source=./deploy.env
+source "$CURRENTPATH/deploy.env"
+
# ---------------------------------------------------------------------
# bootstrap install prerequisites
# ---------------------------------------------------------------------
# ---------------------------------------------------------------------
# bootstrap install prerequisites
# ---------------------------------------------------------------------
+ #-------------------------------------------------------------------------------
+ # 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
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Check is libvirt is installed
#-------------------------------------------------------------------------------