}
cleanup() {
+ fusermount -u tmp &> /dev/null || true
rm -rf dir* tmp* *.wim *.swm
}
-trap cleanup exit
-fusermount -u tmp || true
-rm -rf tmp || true
+cleanup
# Make test directory
mkdir dir
echo "**********************************************************"
echo " Basic imagex tests passed "
echo "**********************************************************"
+cleanup