Scripts in bin: tidied functions

This commit is contained in:
Chris Greenshields
2017-05-29 21:03:54 +01:00
parent d8291f848d
commit 1697274cc4
7 changed files with 8 additions and 8 deletions

View File

@ -60,7 +60,7 @@ options:
USAGE
}
error () {
error() {
usage 1>&2
exit 1
}

View File

@ -45,7 +45,7 @@ Foam::polyMesh::removeFiles() method.
USAGE
}
error () {
error() {
exec 1>&2
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
usage

View File

@ -47,7 +47,7 @@ The time directory is the first time directory by default.
USAGE
}
error () {
error() {
exec 1>&2
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
usage

View File

@ -31,7 +31,7 @@
#
#------------------------------------------------------------------------------
usage () {
usage() {
cat <<USAGE
Usage: ${0##*/} [OPTIONS] ...
@ -55,7 +55,7 @@ Requires avconv or mencoder for MPEG-4 output, avconv for WebM output
USAGE
}
error () {
error() {
exec 1>&2
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
usage

View File

@ -64,7 +64,7 @@ options:
USAGE
}
error () {
error() {
exec 1>&2
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
usage

View File

@ -49,7 +49,7 @@ options:
USAGE
}
error () {
error() {
exec 1>&2
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
usage

View File

@ -97,7 +97,7 @@ variables.
HELP
}
error () {
error() {
exec 1>&2
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
usage