fixed no exit status on usage
This commit is contained in:
parent
7ea011f13c
commit
5c26176cc8
4
which
4
which
@ -7,10 +7,12 @@
|
|||||||
# permitted in any medium without royalty provided the copyright notice and this
|
# permitted in any medium without royalty provided the copyright notice and this
|
||||||
# notice are preserved. This file is offered as-is, without any warranty.
|
# notice are preserved. This file is offered as-is, without any warranty.
|
||||||
|
|
||||||
|
set -e
|
||||||
argv0="$0"
|
argv0="$0"
|
||||||
|
|
||||||
if test -z "$1"; then
|
if test -z "$1"; then
|
||||||
printf "Usage: %s command...\n" "$0" 1>&2
|
printf "Usage: %s command...\n" "$0" 1>&2
|
||||||
|
exit 64 # sysexits.h(3) EX_USAGE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while test -n "$1"; do
|
while test -n "$1"; do
|
||||||