summaryrefslogtreecommitdiffstats
path: root/xlators/mount
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mount')
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index 19418191a..6f9aaaa69 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -207,11 +207,12 @@ main ()
exit 0;
}
- mount_provided=$(echo "$@" | cut -f2 -d'/');
-
- [ -n "$mount_provided" ] && {
- mount_point="/$mount_provided";
- }
+ mount_point=""
+ for arg in "$@"; do
+ [ -d "$arg" ] && {
+ mount_point=$arg
+ }
+ done
[ -z "$mount_point" ] && {
usage;