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:
parent
07fd39479b
commit
be28cbc5f8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user