]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-ntfs
Version 1.2.0
[wimlib] / tests / test-imagex-ntfs
index 5e9a2a3f365ccec392cee1cef9fc3b4d119082eb..45404d17a15a0dfdd50f1adabe91e00811465009 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This script does some sanity testing of the 'imagex' program, specifically
 # checking the NTFS capture and apply features.
@@ -9,8 +9,8 @@
 # remain mounted.
 
 set -e
-srcdir=`pwd`
 cd tests
+. tests-common.sh
 
 imagex() {
        ../imagex $@ > /dev/null
@@ -22,6 +22,7 @@ __do_unmount() {
        fi
 
 }
+
 do_unmount() {
        if mountpoint $1 &> /dev/null; then
                __do_unmount $1