summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xextras/geo-rep/get-gfid.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/geo-rep/get-gfid.sh b/extras/geo-rep/get-gfid.sh
index a4d609b..e63057d 100755
--- a/extras/geo-rep/get-gfid.sh
+++ b/extras/geo-rep/get-gfid.sh
@@ -1,7 +1,7 @@
#!/bin/bash
ATTR_STR=`getfattr -h $1 -n glusterfs.gfid.string`
-GLFS_PATH=`echo $ATTR_STR | sed -e 's/# file: \(.*\) glusterfs.gfid.string*/\1/g'`
+GLFS_PATH=`echo $ATTR_STR | sed -e 's/# file: \(.*\) glusterfs.gfid.string.*/\1/g'`
GFID=`echo $ATTR_STR | sed -e 's/.*glusterfs.gfid.string="\(.*\)"/\1/g'`
echo "$GFID $GLFS_PATH"