From: sgf Date: Tue, 21 Dec 2021 17:55:10 +0000 (+0300) Subject: Fix '-f' option and getopts optstring. X-Git-Tag: v0.5.2~1^2 X-Git-Url: http://git.grml.org/?p=grml-rescueboot.git;a=commitdiff_plain;h=df317cac57ab93c0675d8ec5eda99d6c3b8ef5c0 Fix '-f' option and getopts optstring. Option '-f' does not need an argument. Also shell getopts does not support optional arguments (two colons in optstring). --- diff --git a/update-grml-rescueboot b/update-grml-rescueboot index 0dc97d5..f555034 100755 --- a/update-grml-rescueboot +++ b/update-grml-rescueboot @@ -34,7 +34,7 @@ usage() { echo "Usage: $(basename "$0") [-f] [-a <32|64|96>] [-t ]" } -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