From df317cac57ab93c0675d8ec5eda99d6c3b8ef5c0 Mon Sep 17 00:00:00 2001 From: sgf Date: Tue, 21 Dec 2021 20:55:10 +0300 Subject: [PATCH] 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). --- update-grml-rescueboot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4