summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2016-01-09 05:49:24 +0100
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-01-12 13:14:43 -0800
commit682b19eec8e0a874f7dc8b0ec04b5d731be928e5 (patch)
treeb450c5f6c93e5069cfc6c0e7f2d4e933d5d88ac2
parentae165bd6d7c3a0130984cbd927be318146c7bbdd (diff)
Portability fix: rfc.sh
Function declaration in POSIX shell does not use the 'function' keyword. This is bash-specific. BUG: 1129939 Change-Id: Ifc2dddd0c0a99d2672aaa3aa1cdf18d0d1e38336 Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.org/13206 Reviewed-by: Raghavendra Talur <rtalur@redhat.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org>
-rwxr-xr-xrfc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc.sh b/rfc.sh
index 5da88b651b1..31fdce3f3c9 100755
--- a/rfc.sh
+++ b/rfc.sh
@@ -9,7 +9,7 @@ while getopts "v" opt; do
case $opt in
v)
# Verbose mode
- function git () { >&2 echo "git $@" && `which git` $@; }
+ git () { >&2 echo "git $@" && `which git` $@; }
;;
esac
done