summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorJohn Mulligan <jmulligan@redhat.com>2018-06-20 13:36:13 -0400
committerAmar Tumballi <amarts@redhat.com>2018-06-21 05:44:26 +0000
commit2bab841316025c402b97c877ccc4ee9188c929e0 (patch)
treeb52a5fc8138f10c03cdfde08544078949ccd6e8d /xlators
parent869637e8d227dbab5530d01c8d8eeeee329288b4 (diff)
fuse: avoid using the which command
In mount.glusterfs avoid using the which tool as it may not exist on minimal system installs. Use the "command -v" builtin as it is expected to be more portable. Remove a extra semicolon while we're at it. Change-Id: Ib682ed4955d5bad1beb94b65d10f4c44e9490767 fixes: bz#1593351 Signed-off-by: John Mulligan <jmulligan@redhat.com>
Diffstat (limited to 'xlators')
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index e8bcb337419..959f2272e2f 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -34,7 +34,7 @@ _init ()
# check whether getfattr exists
export PATH
- getfattr=$(which getfattr 2>/dev/null);
+ getfattr=$(command -v getfattr 2>/dev/null)
if [ $? -ne 0 ]; then
warn "WARNING: getfattr not found, certain checks will be skipped.."
fi