summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2017-06-01 07:05:42 -0400
committerShyamsundar Ranganathan <srangana@redhat.com>2017-06-06 19:23:11 +0000
commit9570e226bac30da7dd487fdecb88c608876dfe96 (patch)
tree370e8dc73d50acc0f64be6fa51c7cbb62cdab277 /extras
parent4757416dd2cd2110342f2e25e8e786d6c4b4abb2 (diff)
extras/hookscripts: non-portable shell syntax
use of "function" is not portable to other shells master BUG: 1457812 master: https://review.gluster.org/17443 Reported-by: Patrick Matthäi <pmatthaei@debian.org> Change-Id: I13a0482b387cc3b7a7a57df424e673850603da37 BUG: 1459095 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: https://review.gluster.org/17476 Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'extras')
-rwxr-xr-xextras/hook-scripts/create/post/S10selinux-label-brick.sh4
1 files changed, 2 insertions, 2 deletions
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