]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex
inode updates (IN PROGRESS)
[wimlib] / tests / test-imagex
index dc67da2af0a8237e458d82aa52746ed5be3ff6a2..85c17b4d6219470d530e29ef00e01c2f8f8da8c1 100755 (executable)
@@ -19,11 +19,10 @@ imagex_info() {
 }
 
 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
@@ -528,3 +527,4 @@ done
 echo "**********************************************************"
 echo "                 Basic imagex tests passed                "
 echo "**********************************************************"
+cleanup