summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. 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)
commit9f999a85489520ae4a901cfcf87db924e8fcd036 (patch)
tree26aaa449d0752e30ab315d46cb5ed31f88941426
parent7f084063dab978e3a60fd93c415822c4cec07f02 (diff)
get_options(): Use ${running_cmd_clean}
-rw-r--r--lib/getopt.sh6
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