summaryrefslogtreecommitdiffstats
path: root/misc-utils/getopt-parse.bash
diff options
context:
space:
mode:
authorSami Kerola2017-05-16 09:37:41 +0200
committerKarel Zak2017-05-16 14:54:41 +0200
commit9ac755f6c3d3fa50b40f9aeb0eaa5b86ce24da76 (patch)
tree049676e3524cdac8b7b5b7ceced589217a548ae9 /misc-utils/getopt-parse.bash
parentfsck.minix: fix crash (diff)
downloadkernel-qcow2-util-linux-9ac755f6c3d3fa50b40f9aeb0eaa5b86ce24da76.tar.gz
kernel-qcow2-util-linux-9ac755f6c3d3fa50b40f9aeb0eaa5b86ce24da76.tar.xz
kernel-qcow2-util-linux-9ac755f6c3d3fa50b40f9aeb0eaa5b86ce24da76.zip
getops: make --a-long option work again
Add back a character lost in earlier change. Regression-from: d27f5fe770025e456fbd33b87a96968f34c455ed Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/getopt-parse.bash')
-rw-r--r--misc-utils/getopt-parse.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/getopt-parse.bash b/misc-utils/getopt-parse.bash
index 348c445a4..db8bf6b59 100644
--- a/misc-utils/getopt-parse.bash
+++ b/misc-utils/getopt-parse.bash
@@ -20,7 +20,7 @@
# Note that we use "$@" to let each command-line parameter expand to a
# separate word. The quotes around "$@" are essential!
# We need TEMP as the 'eval set --' would nuke the return value of getopt.
-TEMP=$(getopt -o 'ab:c::' --long '-long,b-long:,c-long::' -n 'example.bash' -- "$@")
+TEMP=$(getopt -o 'ab:c::' --long 'a-long,b-long:,c-long::' -n 'example.bash' -- "$@")
if [ $? -ne 0 ]; then
echo 'Terminating...' >&2