diff options
author | Sami Kerola | 2017-05-16 09:37:41 +0200 |
---|---|---|
committer | Karel Zak | 2017-05-16 14:54:41 +0200 |
commit | 9ac755f6c3d3fa50b40f9aeb0eaa5b86ce24da76 (patch) | |
tree | 049676e3524cdac8b7b5b7ceced589217a548ae9 /misc-utils/getopt-parse.bash | |
parent | fsck.minix: fix crash (diff) | |
download | kernel-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.bash | 2 |
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 |