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>
This commit is contained in:
Kaleb S. KEITHLEY 2017-06-01 07:05:42 -04:00 committed by Niels de Vos
parent 07fd39479b
commit be28cbc5f8

View File

@ -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