Fix '-f' option and getopts optstring.
authorsgf <sgf.dma@gmail.com>
Tue, 21 Dec 2021 17:55:10 +0000 (20:55 +0300)
committersgf <sgf.dma@gmail.com>
Tue, 21 Dec 2021 17:55:10 +0000 (20:55 +0300)
Option '-f' does not need an argument.

Also shell getopts does not support optional arguments (two colons in
optstring).

update-grml-rescueboot

index 0dc97d5..f555034 100755 (executable)
@@ -34,7 +34,7 @@ usage() {
   echo "Usage: $(basename "$0") [-f] [-a <32|64|96>] [-t <small|full>]"
 }
 
-while getopts ":a::t::f:h" opt ; do
+while getopts ":a:t:fh" opt ; do
   case ${opt} in
     a)
       if [ "${OPTARG}" = 32 ] || [ "${OPTARG}" = 64 ] || [ "${OPTARG}" = 96 ] ; then