diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-05-25 00:53:10 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-05-25 00:53:10 (EDT) |
commit | 9f999a85489520ae4a901cfcf87db924e8fcd036 (patch) | |
tree | 26aaa449d0752e30ab315d46cb5ed31f88941426 /lib | |
parent | 7f084063dab978e3a60fd93c415822c4cec07f02 (diff) |
get_options(): Use ${running_cmd_clean}
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getopt.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/getopt.sh b/lib/getopt.sh index 32fb57d..048e02b 100644 --- a/lib/getopt.sh +++ b/lib/getopt.sh @@ -27,12 +27,12 @@ get_options() local prefix= local opt= - if [ "x${running_cmd}" = 'x' ]; then + if [ "x${running_cmd_clean}" = 'x' ]; then optstring="${OPTSTRING}" prefix='opt_' else - eval "optstring=\"\${cmd_${running_cmd}_optstring}\"" - prefix="cmd_${running_cmd}_opt_" + eval "optstring=\"\${cmd_${running_cmd_clean}_optstring}\"" + prefix="cmd_${running_cmd_clean}_opt_" fi unset OPTARG |