fatal message causes rc=2 so replace with error

This allows the usage information to be shown when a bad command-line
option is used, and rc=3 to be returned.
This commit is contained in:
Jerome Charaoui 2021-01-10 10:39:35 -05:00
parent 6aa373e112
commit fa7bb73441

View File

@ -468,8 +468,7 @@ while [ $# -ge 1 ]; do
;;
*)
debug=1
echo "Unknown option $1"
fatal "Unknown option $1"
error "Unknown option $1"
usage
exit 3
;;