From bdcdc8dd18dda19af698f147e3f32ed7f9e5efd5 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 14 Jul 2009 17:38:08 +0000 Subject: change mount.glusterfs.in to work with non-bash shells too. removed 'fuction ' prefix to function definitions which was very much /bin/bash specific. Thanks to Brent A. Nelson for the patch. Signed-off-by: Anand V. Avati BUG: 139 (tiny glitch in mount.glusterfs in 2.0.4) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=139 --- xlators/mount/fuse/utils/mount.glusterfs.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xlators/mount') diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index 95403262015..0bf8efd9dbc 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -16,7 +16,7 @@ # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, # Boston, MA 02110-1301 USA -function _init () +_init () { # log level definitions LOG_NONE=NONE; @@ -34,7 +34,7 @@ function _init () cmd_line=$(echo "@sbindir@/glusterfs"); } -function start_glusterfs () +start_glusterfs () { if [ -n "$log_level_str" ]; then case "$log_level_str" in @@ -115,7 +115,7 @@ function start_glusterfs () exec $cmd_line; } -function usage () +usage () { echo "Usage: mount.glusterfs : -o @@ -127,7 +127,7 @@ mount.glusterfs --version" } -function main () +main () { helper=$(echo "$@" | sed -n 's/.*\--[ ]*\([^ ]*\).*/\1/p'); -- cgit