]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-capture_and_apply
Fix sequential extraction, and include progress info
[wimlib] / tests / test-imagex-capture_and_apply
index db3fcbe69e501d81fc595672907bc696c50890bb..caa4d47ea8abb7b1f12fddf05763fae3a17a1251 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Test capturing and applying a WIM image in the normal (non-NTFS) capture mode
 #
@@ -9,8 +9,9 @@
 # Also, test if the capture configuration file works correctly.
 
 set -e
-srcdir=`pwd`
 cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
 
 imagex() {
        echo "imagex $@"