release: Define a default value for destdir

We want to isupport calling individual functions from the script,
independendent of the actual script being called.
Define a default value for $destdir.

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
Archana Shinde 2019-10-15 17:43:42 -07:00 committed by Eric Ernst
parent 7a932cf3a9
commit 5307b03adb

View File

@ -24,6 +24,9 @@ workdir="${WORKDIR:-$PWD}"
# that are local # that are local
test_local="false" test_local="false"
destdir="${workdir}/kata-static"
mkdir -p "${destdir}"
exit_handler() { exit_handler() {
[ -d "${tmp_dir}" ] || sudo rm -rf "${tmp_dir}" [ -d "${tmp_dir}" ] || sudo rm -rf "${tmp_dir}"
} }