X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex-ntfs;h=412ac20a10e3383e49d17c69788b7dd7ae6934e0;hp=dbfd10a7342cb77e7ae83f1e23f000dc621e4367;hb=4ba34093040be55a44a7707826a4912e594e5291;hpb=f6923ccb97dc11e0e80013007b8aed8a660be891 diff --git a/tests/test-imagex-ntfs b/tests/test-imagex-ntfs index dbfd10a7..412ac20a 100755 --- a/tests/test-imagex-ntfs +++ b/tests/test-imagex-ntfs @@ -31,7 +31,12 @@ do_unmount() { __do_mount() { options="$3" - if ! ntfs-3g ${options:+-o $options} $1 $2; then + if [ -z "$options" ]; then + options="no_def_opts,silent" + else + options="$options,no_def_opts,silent" + fi + if ! ntfs-3g -o $options $1 $2; then error "Could not mount NTFS volume \"$1\" on \"$2\". Make sure ntfs-3g is installed." fi }