Blob Blame History Raw
From aa9c7b187064b8913d71ea57db4b51808fa63fb7 Mon Sep 17 00:00:00 2001
From: Amar Tumballi <amarts@redhat.com>
Date: Thu, 5 Oct 2017 18:39:14 +0530
Subject: [PATCH 623/623] mount.glusterfs: fix the syntax error

BUG: 1498862

Change-Id: Ie5f291979fd797a4fd519c015577e18c3f953074
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/119822
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Tested-by: RHGS Build Bot <nigelb@redhat.com>
---
 xlators/mount/fuse/utils/mount.glusterfs.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index e294c5a..ceaa085 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -643,6 +643,7 @@ main ()
             first_char=$(echo "$volume_str" | cut -c 1);
             [ ${first_char} = '/' ] && {
                 volume_str_temp=$(echo "$volume_str" | cut -c 2-);
+            }
             [ $(echo $volume_str_temp | grep -c "/") -eq 1 ] && {
                 volume_id=$(echo "$volume_str_temp" | cut -f1 -d '/');
                 subdir_mount=$(echo "$volume_str_temp" | cut -f2- -d '/');
-- 
1.8.3.1