From b66d663ff82db03c06be1149be3fd0ce15f8c19d Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 16 Feb 2017 19:13:03 +0100 Subject: tests: OSX compat: use "mount" command instead of /proc/mounts Mac OS X does not have /proc. Reported at https://github.com/rfjakob/gocryptfs/issues/15#issuecomment-279130217 --- test.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.bash b/test.bash index 305d135..e1046c4 100755 --- a/test.bash +++ b/test.bash @@ -19,7 +19,7 @@ fi # Clean up dangling filesystems source tests/fuse-unmount.bash -for i in $(cat /proc/mounts | grep $TESTDIR | cut -f2 -d" "); do +for i in $(mount | grep $TESTDIR | cut -f3 -d" "); do echo "Warning: unmounting leftover filesystem: $i" fuse-unmount $i done -- cgit v1.2.3