image: build: fix agent version.

If agent version is not defined use versions.txt

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz
2019-04-30 09:41:29 -05:00
parent b4732a9bf9
commit 25496caf18

View File

@@ -35,6 +35,10 @@ kata_version="master"
kata_osbuilder_version="${KATA_OSBUILDER_VERSION:-}"
# Agent version
agent_version="${AGENT_VERSION:-}"
if [ -z "${agent_version}" ]; then
source "${script_dir}/../versions.txt"
agent_version="${kata_agent_hash}"
fi
readonly destdir="${PWD}"