diff --git a/scripts/create.sh b/scripts/create.sh index 7ffe6bf..050ad3f 100755 --- a/scripts/create.sh +++ b/scripts/create.sh @@ -64,6 +64,11 @@ function main() { tools::install + if [ -f "${IMAGES_JSON}" ]; then + # we need to copy images.json for inclusion in the build image + cp $IMAGES_JSON "${ROOT_DIR}/stack" + fi + # if stack or build argument is provided but not both, then throw an error if [[ -n "${stack_dir_name}" && ! -n "${build_dir_name}" ]] || [[ ! -n "${stack_dir_name}" && -n "${build_dir_name}" ]]; then util::print::error "Both stack-dir and build-dir must be provided" @@ -95,7 +100,6 @@ OPTIONS USAGE } - function tools::install() { util::tools::jam::install \ --directory "${BIN_DIR}"