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
This commit is contained in:
parent
e5bee6a6aa
commit
b66d663ff8
@ -19,7 +19,7 @@ fi
|
|||||||
|
|
||||||
# Clean up dangling filesystems
|
# Clean up dangling filesystems
|
||||||
source tests/fuse-unmount.bash
|
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"
|
echo "Warning: unmounting leftover filesystem: $i"
|
||||||
fuse-unmount $i
|
fuse-unmount $i
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user