]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex
Define version macros in wimlib.h
[wimlib] / tests / test-imagex
index fcbf5406fb2b4a2cc4eb5fcb3726d033db5da233..0ac5fc3592672214aa6502a2fe855ae45be59b3c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This script does some sanity testing of the 'imagex' program.  It by no means
 # tests every aspect of wimlib comprehensively.
@@ -19,7 +19,8 @@ imagex_info() {
 }
 
 cleanup() {
-       rm -rf dir* tmp* *.wim *.swm
+       fusermount -u tmp &> /dev/null || true
+       rm -rf dir* tmp* *.wim *.swm &> /dev/null || true
 }
 cleanup