Scripts in bin: tidied functions
This commit is contained in:
@ -60,7 +60,7 @@ options:
|
|||||||
USAGE
|
USAGE
|
||||||
}
|
}
|
||||||
|
|
||||||
error () {
|
error() {
|
||||||
usage 1>&2
|
usage 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,7 +45,7 @@ Foam::polyMesh::removeFiles() method.
|
|||||||
USAGE
|
USAGE
|
||||||
}
|
}
|
||||||
|
|
||||||
error () {
|
error() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
usage
|
usage
|
||||||
|
|||||||
@ -47,7 +47,7 @@ The time directory is the first time directory by default.
|
|||||||
USAGE
|
USAGE
|
||||||
}
|
}
|
||||||
|
|
||||||
error () {
|
error() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
usage
|
usage
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
usage () {
|
usage() {
|
||||||
cat <<USAGE
|
cat <<USAGE
|
||||||
|
|
||||||
Usage: ${0##*/} [OPTIONS] ...
|
Usage: ${0##*/} [OPTIONS] ...
|
||||||
@ -55,7 +55,7 @@ Requires avconv or mencoder for MPEG-4 output, avconv for WebM output
|
|||||||
USAGE
|
USAGE
|
||||||
}
|
}
|
||||||
|
|
||||||
error () {
|
error() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
usage
|
usage
|
||||||
|
|||||||
@ -64,7 +64,7 @@ options:
|
|||||||
USAGE
|
USAGE
|
||||||
}
|
}
|
||||||
|
|
||||||
error () {
|
error() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
usage
|
usage
|
||||||
|
|||||||
@ -49,7 +49,7 @@ options:
|
|||||||
USAGE
|
USAGE
|
||||||
}
|
}
|
||||||
|
|
||||||
error () {
|
error() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
usage
|
usage
|
||||||
|
|||||||
@ -97,7 +97,7 @@ variables.
|
|||||||
HELP
|
HELP
|
||||||
}
|
}
|
||||||
|
|
||||||
error () {
|
error() {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
usage
|
usage
|
||||||
|
|||||||
Reference in New Issue
Block a user