summaryrefslogtreecommitdiffstats
path: root/tools/gfind_missing_files/gfid_to_path.sh
diff options
context:
space:
mode:
authorKaleb S KEITHLEY <kkeithle@redhat.com>2016-05-17 11:06:07 -0400
committerNiels de Vos <ndevos@redhat.com>2016-05-18 02:22:35 -0700
commit2df72780e473709128a4f5d7f274a9063b288252 (patch)
treee3657617de466038ca8d2803b48e165a7656bae0 /tools/gfind_missing_files/gfid_to_path.sh
parent138935bf8d4b37e094c08eea7a20efc0553e9694 (diff)
scripts: bash-isms in scripts
Change-Id: I05f8718fb73c16dbb37c1f7460bb7b55cc0ffe97 BUG: 1336853 Reported-by: Patrick Matthäi <pmatthaei@debian.org> Signed-off-by: Kaleb S KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/14401 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kotresh HR <khiremat@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'tools/gfind_missing_files/gfid_to_path.sh')
-rw-r--r--tools/gfind_missing_files/gfid_to_path.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/gfind_missing_files/gfid_to_path.sh b/tools/gfind_missing_files/gfid_to_path.sh
index 20ac6a94fd2..ebe817ac2f3 100644
--- a/tools/gfind_missing_files/gfid_to_path.sh
+++ b/tools/gfind_missing_files/gfid_to_path.sh
@@ -11,7 +11,7 @@
E_BADARGS=65
-function gfid_to_path()
+gfid_to_path ()
{
brick_dir=$1;
gfid_file=$(readlink -e $2);
@@ -29,7 +29,8 @@ function gfid_to_path()
}
-function main(){
+main ()
+{
if [ $# -ne 2 ]
then
echo "Usage: `basename $0` BRICK_DIR GFID_FILE";