diff options
| author | Kaleb S KEITHLEY <kkeithle@redhat.com> | 2016-05-17 11:06:07 -0400 | 
|---|---|---|
| committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2016-06-24 09:42:31 -0700 | 
| commit | cdaa5dd7f91d93fce3d900e4321dd83d021e96dd (patch) | |
| tree | 7b40c7c607c347b3b37a0fa30eaeaacf7201d397 /tools/gfind_missing_files/gfind_missing_files.sh | |
| parent | 6a9a48e4d70a56167c0f1e8432bba9050264ab97 (diff) | |
scripts: bash-isms in scripts
Backport of http://review.gluster.org/14401/
Change-Id: I05f8718fb73c16dbb37c1f7460bb7b55cc0ffe97
BUG: 1223947
Reported-by: Patrick Matthäi <pmatthaei@debian.org>
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Original-Author: Kaleb S KEITHLEY <kkeithle@redhat.com>
(cherry picked from commit 2df72780e473709128a4f5d7f274a9063b288252)
Reviewed-on: http://review.gluster.org/14774
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'tools/gfind_missing_files/gfind_missing_files.sh')
| -rw-r--r-- | tools/gfind_missing_files/gfind_missing_files.sh | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/gfind_missing_files/gfind_missing_files.sh b/tools/gfind_missing_files/gfind_missing_files.sh index 07d6befc958..f42fe7b05af 100644 --- a/tools/gfind_missing_files/gfind_missing_files.sh +++ b/tools/gfind_missing_files/gfind_missing_files.sh @@ -14,18 +14,18 @@ SLAVEVOL=     #Slave volume  SLAVEMNT=     #Slave gluster volume mount point  WORKERS=4     #Default number of worker threads -function out() +out()  {      echo "$@";  } -function fatal() +fatal()  {      out FATAL "$@";      exit 1  } -function ping_host () +ping_host ()  {      ### Use bash internal socket support      { @@ -39,7 +39,7 @@ function ping_host ()      } 1>&2 2>/dev/null  } -function mount_slave() +mount_slave()  {      local i; # inode number      SSH_PORT=22 @@ -59,7 +59,7 @@ function mount_slave()      [ "x$i" = "x1" ] || fatal "Could not mount volume $2 on $SLAVEMNT Please check host and volume exists";  } -function parse_cli() +parse_cli()  {      if [[ $# -ne 4 ]]; then          echo "Usage: gfind_missing_files <brick-path> <slave-host> <slave-vol> <OUTFILE>" @@ -76,7 +76,7 @@ function parse_cli()      fi  } -function main() +main()  {      parse_cli "$@";  | 
