Skip to content

Commit

Permalink
simple-test: fix awk syntax for unmount only by fstype
Browse files Browse the repository at this point in the history
But we could just use 'umount -t' I guess.
  • Loading branch information
azat committed Sep 17, 2014
1 parent b84270e commit 0a41a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simple-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function do_read_operations()
}
function cleanup()
{
cat /proc/mounts | awk '/$3 = simplefs/ {print $2}' | xargs -r umount
cat /proc/mounts | awk '$3 ~ /^simplefs$/ {print $2}' | xargs -r umount
lsmod | grep -q simplefs && rmmod "$root_pwd/simplefs.ko"

# TODO: prompt deletion
Expand Down

0 comments on commit 0a41a03

Please sign in to comment.