diff options
Diffstat (limited to 'src/getopt.sh')
-rw-r--r-- | src/getopt.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/getopt.sh b/src/getopt.sh index 0e63ead..12f3807 100644 --- a/src/getopt.sh +++ b/src/getopt.sh @@ -24,12 +24,12 @@ get_options() local prefix= local opt= - if [ "x${running_cmd_clean}" = 'x' ]; then + if [ "x${cmd_running_clean}" = 'x' ]; then optstring="${OPTSTRING}" prefix='opt_' else - eval "optstring=\"\${cmd_${running_cmd_clean}_optstring}\"" - prefix="cmd_${running_cmd_clean}_opt_" + eval "optstring=\"\${cmd_${cmd_running_clean}_optstring}\"" + prefix="cmd_${cmd_running_clean}_opt_" fi unset OPTARG |