summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2017-06-01 07:05:42 -0400
committerNiels de Vos <ndevos@redhat.com>2017-06-02 12:13:33 +0000
commitbe28cbc5f8d3a78f6968b0307d001a5c0f0d8b31 (patch)
tree6afe8a068648c3767d0657eecf4c72f2074b82d6 /extras
parent07fd39479bdd6502f7781894be06eb66aaa8ef10 (diff)
extras/hookscripts: non-portable shell syntax
use of "function" is not portable to other shells Reported-by: Patrick Matthäi <pmatthaei@debian.org> Change-Id: I13a0482b387cc3b7a7a57df424e673850603da37 BUG: 1457812 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: https://review.gluster.org/17443 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com> Smoke: 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