diff --git a/tests/dib_functions_test.sh b/tests/dib_functions_test.sh index a1a49736..a44408c4 100755 --- a/tests/dib_functions_test.sh +++ b/tests/dib_functions_test.sh @@ -37,7 +37,7 @@ fi # umount devices unmount_dir $TMP_MOUNT_PATH -if [ $(grep "$TMP_DIR" /proc/mounts | wc -l) -ne 0 ]; then +if grep -q "$TMP_DIR" /proc/mounts; then echo "*** FAILED due to mounts being left behind" return 1 else