nmhw-auto-part: Now shows usage when presented with an unsupported argument.
BugzID: 54510 Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
This commit is contained in:
parent
cc0f881661
commit
0722982b5c
|
|
@ -296,7 +296,7 @@ execute(){
|
|||
touch /etc/nmhw-auto-part/overlay
|
||||
;;
|
||||
*)
|
||||
echo "Error: $ptype is not an option."
|
||||
echo "$ptype is not an option."
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
@ -352,6 +352,12 @@ elif (( $# == 1 )) ; then
|
|||
description
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "${0##*/} : $1 is not an option."
|
||||
usage
|
||||
description
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
elif (( $# == 4 )) ; then
|
||||
scripted_mode $1 $2 $3 $4
|
||||
|
|
|
|||
Loading…
Reference in New Issue