diff --git a/simple-test.sh b/simple-test.sh index 72fc33a..5985566 100755 --- a/simple-test.sh +++ b/simple-test.sh @@ -89,7 +89,7 @@ function do_read_operations() function cleanup() { cd "$root_pwd" - umount -t simplefs "$test_mount_point" + [ -d "$test_mount_point" ] && umount -t simplefs "$test_mount_point" lsmod | grep -q simplefs && rmmod "$root_pwd/simplefs.ko" # TODO: prompt deletion