From be28cbc5f8d3a78f6968b0307d001a5c0f0d8b31 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Thu, 1 Jun 2017 07:05:42 -0400 Subject: extras/hookscripts: non-portable shell syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit use of "function" is not portable to other shells Reported-by: Patrick Matthäi Change-Id: I13a0482b387cc3b7a7a57df424e673850603da37 BUG: 1457812 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: https://review.gluster.org/17443 NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Niels de Vos Smoke: Gluster Build System --- extras/hook-scripts/create/post/S10selinux-label-brick.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extras') diff --git a/extras/hook-scripts/create/post/S10selinux-label-brick.sh b/extras/hook-scripts/create/post/S10selinux-label-brick.sh index d69a938123e..f38555c26c0 100755 --- a/extras/hook-scripts/create/post/S10selinux-label-brick.sh +++ b/extras/hook-scripts/create/post/S10selinux-label-brick.sh @@ -13,7 +13,7 @@ PROGNAME="Sselinux" OPTSPEC="volname:" VOL= -function parse_args () { +parse_args () { ARGS=$(getopt -l $OPTSPEC -name $PROGNAME $@) eval set -- "$ARGS" @@ -32,7 +32,7 @@ function parse_args () { done } -function set_brick_labels() +set_brick_labels() { volname=$1 -- cgit