From e1df255a33a5774e12f1c18d6865b99ef0a5e571 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 16 Sep 2014 16:22:00 +0400 Subject: [PATCH] simple-test: more accurate grep for /proc/mounts --- simple-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple-test.sh b/simple-test.sh index efc93ca..ae5ffbd 100755 --- a/simple-test.sh +++ b/simple-test.sh @@ -88,7 +88,7 @@ function do_read_operations() } function cleanup() { - cat /proc/mounts | grep simplefs | awk '{print $2}' | xargs -r umount + cat /proc/mounts | fgrep ' simplefs ' | awk '{print $2}' | xargs -r umount lsmod | grep -q simplefs && rmmod "$root_pwd/simplefs.ko" # TODO: prompt deletion