mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
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:
parent
7f5cb154d4
commit
b3e81f22e4
@ -631,6 +631,10 @@ vm_cleanup() {
|
||||
sudo rm -rf "${VM_TMP_DIR}"
|
||||
}
|
||||
|
||||
vm_upload() {
|
||||
upload_image "${VM_GENERATED_FILES[@]}"
|
||||
}
|
||||
|
||||
print_readme() {
|
||||
local filename
|
||||
info "Files written to $(relpath "$(dirname "${VM_DST_IMG}")")"
|
||||
|
@ -106,7 +106,7 @@ vm_cleanup
|
||||
trap - EXIT
|
||||
|
||||
# Optionally upload all of our hard work
|
||||
upload_image "${VM_GENERATED_FILES[@]}"
|
||||
vm_upload
|
||||
|
||||
# Ready to set sail!
|
||||
okboat
|
||||
|
Loading…
x
Reference in New Issue
Block a user