Initialize the CLEANUP array and trap in common.sh
[ext/instance-debootstrap.git] / export
diff --git a/export b/export
index 82254bc..b127754 100755 (executable)
--- a/export
+++ b/export
@@ -21,10 +21,6 @@ set -e
 
 . common.sh
 
-CLEANUP=( )
-
-trap cleanup EXIT
-
 # If the target device is not a real block device we'll first losetup it.
 # This is needed for file disks.
 if [ ! -b $blockdev ]; then