tools: check for yq before using it
as get_from_kata_deps may be called from scripts that
does not install_yq
@@ -36,6 +36,7 @@ get_from_kata_deps() {
local dependency="$1"
versions_file="${this_script_dir}/../../../versions.yaml"
+ command -v yq &> /dev/null || die 'yq command is not in your $PATH'
result=$("yq" read -X "$versions_file" "$dependency")
[ "$result" = "null" ] && result=""
echo "$result"
