projects
/
grml-rescueboot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
443ca4c
)
Fix '-f' option and getopts optstring.
author
sgf
<sgf.dma@gmail.com>
Tue, 21 Dec 2021 17:55:10 +0000
(20:55 +0300)
committer
sgf
<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
patch
|
blob
|
history
diff --git
a/update-grml-rescueboot
b/update-grml-rescueboot
index
0dc97d5
..
f555034
100755
(executable)
--- a/
update-grml-rescueboot
+++ b/
update-grml-rescueboot
@@
-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:f
h" opt ; do
case ${opt} in
a)
if [ "${OPTARG}" = 32 ] || [ "${OPTARG}" = 64 ] || [ "${OPTARG}" = 96 ] ; then