]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-ntfs
Fix sequential extraction, and include progress info
[wimlib] / tests / test-imagex-ntfs
index 5e9a2a3f365ccec392cee1cef9fc3b4d119082eb..c046c2de7fa39dbe326bb72b8578ed2d98ea0920 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,9 @@
 # remain mounted.
 
 set -e
-srcdir=`pwd`
 cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
 
 imagex() {
        ../imagex $@ > /dev/null