Remove the trap, THEN cleanup

This commit is contained in:
Jørn Åne de Jong 2022-05-01 16:02:54 +02:00 committed by Nico Schottelius
parent c4b91aa64a
commit 9e926a90dc

View file

@ -131,8 +131,8 @@ env ASSUME_ALWAYS_YES=YES pkg -c /mnt install sudo bash curl base64 ruby open-vm
env ASSUME_ALWAYS_YES=YES pkg -c /mnt clean --all env ASSUME_ALWAYS_YES=YES pkg -c /mnt clean --all
rm /mnt/one-context.txz rm /mnt/one-context.txz
cleanup
trap : EXIT trap : EXIT
cleanup
mkdir -p "$ARCH" mkdir -p "$ARCH"
qemu-img convert -f raw -O qcow2 "$disk" "$IMAGE_PATH" qemu-img convert -f raw -O qcow2 "$disk" "$IMAGE_PATH"