mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 20:02:32 +01:00
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:
parent
6aa373e112
commit
fa7bb73441
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user