]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-ntfs
test-imagex-ntfs: find mkntfs on Debian
[wimlib] / tests / test-imagex-ntfs
index f22198fb71e4f1c49cc8407f61fb5b1f00132cd5..f1a0f910d0dfcb72b261da362dcbf1db01bd0e83 100755 (executable)
@@ -16,6 +16,9 @@ srcdir="$(cd $srcdir; pwd)"
 
 TEST_SUBDIR=tmpdir_test-imagex-ntfs
 
+# In Debian, mkntfs is at /sbin/mkntfs but /sbin is not on the $PATH by default.
+PATH+=":/sbin"
+
 __do_unmount() {
        for ((i = 0; i < 10; i++)); do
                if fusermount -z -u $1; then
@@ -59,7 +62,7 @@ do_mount() {
 }
 
 do_mkntfs() {
-       if ! mkntfs --force --fast $1 > /dev/null; then
+       if ! mkntfs --force --fast $1 >/dev/null; then
                error "Could not create NTFS volume \"$1\"!  Make sure ntfsprogs are installed."
        fi
 }