=================================================================== RCS file: /cvs/openbsd/fw_update/fw_install.sh,v retrieving revision 1.98 retrieving revision 1.99 diff -u -r1.98 -r1.99 --- openbsd/fw_update/fw_install.sh 2021/12/21 02:38:00 1.98 +++ openbsd/fw_update/fw_install.sh 2021/12/22 04:10:22 1.99 @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: fw_install.sh,v 1.98 2021/12/21 02:38:00 afresh1 Exp $ +# $OpenBSD: fw_install.sh,v 1.99 2021/12/22 04:10:22 afresh1 Exp $ # # Copyright (c) 2021 Andrew Hewus Fresh # @@ -218,13 +218,13 @@ OPT_D= OPT_L= -while getopts DL name +while getopts :DL name do case "$name" in D) OPT_D=true ;; L) OPT_L=true ;; v) VERBOSE=true ;; - ?) usage 2 ;; + ?) echo "${0##*/}: unknown option -- -$OPTARG"; usage 2 ;; esac done shift $((OPTIND - 1))