]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-mount
test-imagex-*: Set $srcdir correctly
[wimlib] / tests / test-imagex-mount
index 0e94af8124a49a531b34918f8b054a3748ae6962..74cff3f7661adcb916a9a83ee46753ce3633a96b 100755 (executable)
@@ -1,10 +1,11 @@
-#!/bin/sh
+#!/bin/bash
 
 # Test WIM mounting
 
 set -e
-srcdir=`pwd`
 cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
 
 if [ ! -r /dev/fuse ]; then
        echo "WARNING: /dev/fuse is not readable."