7 declare -a bindfs_opts
=($
(bindfs
--help |
grep -Eio "[-]-[a-z0-9-]+"))
25 for bindfs_opt
in "${bindfs_opts[@]}"
27 option_key
=${option%%=*}
28 if [ ".--$option_key" = ".$bindfs_opt" ]
30 if [ "$option_key" = mirror
-o "$option_key" = mirror-only
]
39 if [ $is_bindfs_opt = 0 ]
41 fuse_opts
=$fuse_opts${fuse_opts:+,}$option
50 echo "Unknown option: $1" >&2
59 exec bindfs
"${argv[@]}" ${fuse_opts:+-o "$fuse_opts"} "$mntname" "$mntpoint"