use $USAGE instead of print_usage to print usage
There is no real functionality change other than to remove calls to print_usage that is most cases would have generated an error.
This commit is contained in:
1 parent
35038a63bd
commit
cad665c021
36 files changed
+103
-118
No files matched your search
+4
-4
@@ -217,7 +217,7 @@ while getopts :hv:Vd:D:nNt:w: flag; do
|
||||
*/) ;;
|
||||
*) echo "$0: ERROR: in -D docroot/, the docroot must end in /" 1>&2
|
||||
echo 1>&2
|
||||
print_usage 1>&2
|
||||
echo "$USAGE" 1>&2
|
||||
exit 3
|
||||
;;
|
||||
esac
|
||||
@@ -233,13 +233,13 @@ while getopts :hv:Vd:D:nNt:w: flag; do
|
||||
*"'"*)
|
||||
echo "$0: ERROR: in -t tagline, the tagline may not contain a single-quote character: $OPTARG" 1>&2
|
||||
echo 1>&2
|
||||
print_usage 1>&2
|
||||
echo "$USAGE" 1>&2
|
||||
exit 3
|
||||
;;
|
||||
*'"'*)
|
||||
echo "$0: ERROR: in -t tagline, the tagline may not contain a double-quote character: $OPTARG" 1>&2
|
||||
echo 1>&2
|
||||
print_usage 1>&2
|
||||
echo "$USAGE" 1>&2
|
||||
exit 3
|
||||
;;
|
||||
*) ;;
|
||||
@@ -253,7 +253,7 @@ while getopts :hv:Vd:D:nNt:w: flag; do
|
||||
;;
|
||||
\?) echo "$0: ERROR: invalid option: -$OPTARG" 1>&2
|
||||
echo 1>&2
|
||||
print_usage 1>&2
|
||||
echo "$USAGE" 1>&2
|
||||
exit 3
|
||||
;;
|
||||
:) echo "$0: ERROR: option -$OPTARG requires an argument" 1>&2
|
||||
|
||||
Reference in new issue
Block a user