fix(image_to_vm): Wrap upload_image in vm_upload.

This keeps all references to VM_GENERATED_FILES inside of
build_library/vm_image_util.sh so changes that impact it more obvious.
This commit is contained in:
Michael Marineau 2014-01-29 14:01:33 -08:00
parent 7f5cb154d4
commit b3e81f22e4
2 changed files with 5 additions and 1 deletions

View File

@ -631,6 +631,10 @@ vm_cleanup() {
sudo rm -rf "${VM_TMP_DIR}" sudo rm -rf "${VM_TMP_DIR}"
} }
vm_upload() {
upload_image "${VM_GENERATED_FILES[@]}"
}
print_readme() { print_readme() {
local filename local filename
info "Files written to $(relpath "$(dirname "${VM_DST_IMG}")")" info "Files written to $(relpath "$(dirname "${VM_DST_IMG}")")"

View File

@ -106,7 +106,7 @@ vm_cleanup
trap - EXIT trap - EXIT
# Optionally upload all of our hard work # Optionally upload all of our hard work
upload_image "${VM_GENERATED_FILES[@]}" vm_upload
# Ready to set sail! # Ready to set sail!
okboat okboat